Fix bug in ebook viewer that could cause it to hang wen finding a bookmark

This commit is contained in:
Kovid Goyal 2009-03-29 10:53:55 -07:00
parent 411c397bed
commit f45e84bbe4
2 changed files with 82 additions and 82 deletions

View File

@ -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;
} }