mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
E-book viewer: Fix scrolling with two fingers on touchpad on macOS not smooth. Fixes #1911218 [Scrolling with built-in trackpad of MacBook Pro on macOS very unsmooth](https://bugs.launchpad.net/calibre/+bug/1911218)
On macOS swiping fast tends to scroll along both axes simultaneously
This commit is contained in:
parent
46cf7998ab
commit
309cecad1c
@ -148,9 +148,9 @@ def flow_onwheel(evt):
|
||||
# Right goes forward, so the sign is correct.
|
||||
else:
|
||||
db = dx
|
||||
if di:
|
||||
if Math.abs(di) >= 1:
|
||||
scroll_viewport.scroll_by_in_inline_direction(di)
|
||||
elif Math.abs(db) >= 1:
|
||||
if Math.abs(db) >= 1:
|
||||
scroll_by_and_check_next_page(db)
|
||||
|
||||
@check_for_scroll_end
|
||||
|
Loading…
x
Reference in New Issue
Block a user