branchsbox/horizontal-scrollcancel

16 Commits over 122 Days - 0.01cph!

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