This commit is contained in:
Michael Freno
2025-11-05 16:39:43 -05:00
parent 619e1a7393
commit c77d93fdee
6 changed files with 489 additions and 26 deletions

View File

@@ -32,6 +32,13 @@ function StateManager.getState(id)
focused = false,
disabled = false,
active = false,
-- Scrollbar-specific states
scrollbarHoveredVertical = false,
scrollbarHoveredHorizontal = false,
scrollbarDragging = false,
hoveredScrollbar = nil, -- "vertical" or "horizontal"
scrollbarDragOffset = 0,
-- Frame tracking
lastHoverFrame = 0,
lastPressedFrame = 0,
lastFocusFrame = 0,
@@ -244,6 +251,11 @@ function StateManager.getActiveState(id)
focused = state.focused,
disabled = state.disabled,
active = state.active,
scrollbarHoveredVertical = state.scrollbarHoveredVertical,
scrollbarHoveredHorizontal = state.scrollbarHoveredHorizontal,
scrollbarDragging = state.scrollbarDragging,
hoveredScrollbar = state.hoveredScrollbar,
scrollbarDragOffset = state.scrollbarDragOffset,
}
end