mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
add a note
This commit is contained in:
parent
c1d261defb
commit
e9e53e767b
@ -574,6 +574,7 @@ anchor_funcs = {
|
|||||||
q = -q
|
q = -q
|
||||||
|
|
||||||
if q + 1 < scroll_viewport.block_pos():
|
if q + 1 < scroll_viewport.block_pos():
|
||||||
|
# the + 1 is needed for visibility when top aligned, see: https://bugs.launchpad.net/calibre/+bug/1924890
|
||||||
return -1
|
return -1
|
||||||
if q <= scroll_viewport.block_pos() + scroll_viewport.block_size():
|
if q <= scroll_viewport.block_pos() + scroll_viewport.block_size():
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user