Fix rb scrolling
This commit is contained in:
@@ -94,7 +94,7 @@ terminalWheelEvent yi tmid w
|
||||
|
||||
scrollRBOption :: Int -> World -> World
|
||||
scrollRBOption y w
|
||||
| y < 0 = w & rbOptions . opSel %~ (min (length (_opEquip (_rbOptions w)) -1) . (+ y))
|
||||
| y < 0 = w & rbOptions . opSel %~ (min (length (_opEquip (_rbOptions w)) -1) . subtract y)
|
||||
| y > 0 = w & rbOptions . opSel %~ (max 0 . subtract y)
|
||||
| otherwise = w
|
||||
|
||||
|
||||
Reference in New Issue
Block a user