Broaden search grid

This commit is contained in:
Kovid Goyal 2017-04-27 14:06:47 +05:30
parent 18bbf1dd0b
commit 6d1ff03ace
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -77,8 +77,8 @@ def save_scroll_position():
container = document.getElementById(book_list_data.container_id) container = document.getElementById(book_list_data.container_id)
if container: if container:
left, top = container.offsetLeft, container.offsetTop left, top = container.offsetLeft, container.offsetTop
for y in range(5, 50, 5): for y in range(5, 100, 5):
for x in range(25, 75, 5): for x in range(25, 125, 5):
elem = document.elementFromPoint(left + x, top + y) elem = document.elementFromPoint(left + x, top + y)
p = has_parent_with_class(elem, ITEM_CLASS_NAME) p = has_parent_with_class(elem, ITEM_CLASS_NAME)
if p: if p: