mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04: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
@ -573,7 +573,7 @@ anchor_funcs = {
|
||||
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…
x
Reference in New Issue
Block a user