Guldoman
51f2a291d3
Make `Scrollbar` follow `force_status` when animations are disabled
2022-11-15 21:08:33 +01:00
Guldoman
ed226c476e
Add more options to `Scrollbar` ( #1174 )
...
* Make `Scrollbar` accept a table for its options
* Add `force_status`, `{expanded,shrinked}_size` options to `Scrollbar`
* Add `Scrollbar:set_forced_status`
* Add `config.force_scrollbar_status` to force `DocView` scrollbars status
2022-11-01 18:38:50 -04:00
Guldoman
decbac4ac6
Check if scrollbar is no longer hovered on mouse release
2022-10-16 04:43:15 +02:00
Guldoman
6ca56fee1a
Only consider left clicks on the scrollbar
2022-10-16 04:40:03 +02:00
Guldoman
6b754eb628
Refactor scrollbar into its own file ( #1124 )
...
* Move scrollbar to its own file
* Don't call `Scrollbar` functions if `View` is not scrollable
* Allow horizontal scrolling in `Scrollbar`
* Add horizontal scrollbar to `View`
* Add `root:horizontal-scroll` command with `shift+wheel` keymap
* Prioritize vertical scrollbar hover
* Don't send mouse movement to vertical scrollbar when dragging horizontal one
* Fix clicking on horizontal scrollbar track
* Implement `start` scrollbar alignment
* Add documentation to `Scrollbar`
* Make `DocView` infinitely scrollable horizontally
* Handle horizontal scroll SDL event
2022-10-15 20:12:15 -04:00