mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-31 02:55:19 -04:00
Disable vertical momentum when per-row scrolling is enabled.
This commit is contained in:
@@ -371,7 +371,7 @@ class BooksView(TableView): # {{{
|
||||
else:
|
||||
wv.setHorizontalScrollMode(QAbstractItemView.ScrollMode.ScrollPerPixel)
|
||||
if tweaks['vertical_scrolling_per_row']:
|
||||
wv.update_momentum_scroll_settings(enable_x=False)
|
||||
wv.update_momentum_scroll_settings(enable_y=False)
|
||||
else:
|
||||
wv.setVerticalScrollMode(QAbstractItemView.ScrollMode.ScrollPerPixel)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user