mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:14:31 +02:00
Fix #1924890 [E-book viewer: scrolling to the previous section doesn't always work in Flow mode](https://bugs.launchpad.net/calibre/+bug/1924890)
This commit is contained in:
parent
88f01ec25d
commit
a57ea59adb
1 changed files with 1 additions and 1 deletions
|
|
@ -573,7 +573,7 @@ def handle_gesture(gesture):
|
|||
if scroll_viewport.vertical_writing_mode and scroll_viewport.rtl:
|
||||
q = -q
|
||||
|
||||
if q < scroll_viewport.block_pos():
|
||||
if q + 1 < scroll_viewport.block_pos():
|
||||
return -1
|
||||
if q <= scroll_viewport.block_pos() + scroll_viewport.block_size():
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue