branchsbox/horizontal-scrollcancel
16 Commits over 122 Days - 0.01cph!
X axis doesn't apply to ButtonCode.MouseWheelDown / ButtonCode.MouseWheelUp
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
Changed my mind, everyone else just uses MouseWheel regardless of whether it's 1D or 2D, let's do the same
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.
VR: apply mouse scroll with correct direction, only apply if this panel is focused
Menu GameGroup inner div takes pointer events, so that the gaps between cards don't affect scrolling
Compatibility - legacy MouseWheel has setter, add obsolete TryScroll( float )
Old MouseWheel should be float not vector2
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)
Invert scroll value for emulated horizontal scroll (scrolling down should scroll to the right)
Pass keyboard modifiers to mouse wheel event, and interpret mouse scrolls as horizontal if shift key is held
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
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
MouseWheel -> MouseScroll, obsolete old
Make mouse wheel a Vector2, implement initial horizontal mouse wheel support for UI