userAlexcancel
branchsbox/horizontal-scrollcancel

16 Commits over 122 Days - 0.01cph!

11 Months Ago
X axis doesn't apply to ButtonCode.MouseWheelDown / ButtonCode.MouseWheelUp
11 Months Ago
Initial horizontal scroll support Changes MouseWheel naming to MouseScroll, float parameters become a Vector2. Hold shift + mouse wheel to perform a horizontal scroll, if your mouse has a horizontally scrolling wheel then that will work too. Changed my mind, everyone else just uses MouseWheel regardless of whether it's 1D or 2D, let's do the same
11 Months Ago
Changed my mind, everyone else just uses MouseWheel regardless of whether it's 1D or 2D, let's do the same
11 Months Ago
Initial horizontal scroll support Changes MouseWheel naming to MouseScroll, float parameters become a Vector2. Hold shift + mouse wheel to perform a horizontal scroll, if your mouse has a horizontally scrolling wheel then that will work too.
1 Year Ago
VR: apply mouse scroll with correct direction, only apply if this panel is focused
1 Year Ago
Menu GameGroup inner div takes pointer events, so that the gaps between cards don't affect scrolling
1 Year Ago
Compatibility - legacy MouseWheel has setter, add obsolete TryScroll( float )
1 Year Ago
Cleanup
1 Year Ago
Old MouseWheel should be float not vector2
1 Year Ago
Make mouse wheel a Vector2, implement initial horizontal mouse wheel support for UI MouseWheel -> MouseScroll, obsolete old Ignore scroll if it's not moving in the same direction that the panel overflows in e.g. stops us interfering with vertical scrolls on horizontally scrolling panels: https://files.facepunch.com/alexguthrie/1b3011b1/sbox-dev_12znz25nJC.mp4 Invert scroll X axis Update some more places where I forgot to change MouseWheel to MouseScroll, obsolete `Input.MouseWheel` and `InputData.MouseWheel` WorldInput uses Vector2 for scroll Pass keyboard modifiers to mouse wheel event, and interpret mouse scrolls as horizontal if shift key is held Invert scroll value for emulated horizontal scroll (scrolling down should scroll to the right)
1 Year Ago
Invert scroll value for emulated horizontal scroll (scrolling down should scroll to the right)
1 Year Ago
Pass keyboard modifiers to mouse wheel event, and interpret mouse scrolls as horizontal if shift key is held
1 Year Ago
Invert scroll X axis Update some more places where I forgot to change MouseWheel to MouseScroll, obsolete `Input.MouseWheel` and `InputData.MouseWheel` WorldInput uses Vector2 for scroll
1 Year Ago
Ignore scroll if it's not moving in the same direction that the panel overflows in e.g. stops us interfering with vertical scrolls on horizontally scrolling panels: https://files.facepunch.com/alexguthrie/1b3011b1/sbox-dev_12znz25nJC.mp4
1 Year Ago
MouseWheel -> MouseScroll, obsolete old
1 Year Ago
Make mouse wheel a Vector2, implement initial horizontal mouse wheel support for UI