mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug in ebook viewer that could cause it to hang wen finding a bookmark
This commit is contained in:
parent
411c397bed
commit
f45e84bbe4
@ -18,7 +18,7 @@ function find_enclosing_block(y) {
|
|||||||
if (min != 0 && min.height() < 200) break;
|
if (min != 0 && min.height() < 200) break;
|
||||||
}
|
}
|
||||||
if (y <= 0) return document.body;
|
if (y <= 0) return document.body;
|
||||||
if (min == 0) { return find_enclosing_block(x, y-20); }
|
if (min == 0) { return find_enclosing_block(y-20); }
|
||||||
return min;
|
return min;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user