Tweak scrolling, particularly zooming
This commit is contained in:
+5
-1
@@ -330,8 +330,12 @@ menuWheelStep i u = fromMaybe u $ do
|
||||
then Just newu
|
||||
else Just $ menuWheelStep i newu
|
||||
|
||||
--updateWheelEvents :: World -> World
|
||||
--updateWheelEvents w = foldr ($) w (replicate (abs y) (updateWheelEvent (signum y)))
|
||||
-- where
|
||||
-- y = w ^. input . scrollAmount
|
||||
updateWheelEvents :: World -> World
|
||||
updateWheelEvents w = foldr ($) w (replicate (abs y) (updateWheelEvent (signum y)))
|
||||
updateWheelEvents w = updateWheelEvent y w
|
||||
where
|
||||
y = w ^. input . scrollAmount
|
||||
|
||||
|
||||
Reference in New Issue
Block a user