vertical SimpleWindow accept mousewheel input
This commit is contained in:
@@ -496,8 +496,10 @@
|
|||||||
|
|
||||||
// Scroll wheel scroll up/down
|
// Scroll wheel scroll up/down
|
||||||
(when _useScrolling
|
(when _useScrolling
|
||||||
// TODO move all controls other than xButton and scrollbar. Clamp movement by top and bottom of all controls
|
(let [scrollAmount FlxG.mouse.wheel
|
||||||
null)
|
scrollFunc (if (> 0 scrollAmount) _scrollDown _scrollUp)]
|
||||||
|
(doFor _ (range (Std.int (Math.abs scrollAmount)))
|
||||||
|
(scrollFunc))))
|
||||||
|
|
||||||
// Figure out whether to use mouse input or key/gamepad input for ui navigation
|
// Figure out whether to use mouse input or key/gamepad input for ui navigation
|
||||||
(when justPressedUIButton
|
(when justPressedUIButton
|
||||||
|
|||||||
Reference in New Issue
Block a user