fix scrolling failure on some websites (#369)
This commit is contained in:
@@ -1184,7 +1184,7 @@ function removeBoundingBoxes() {
|
|||||||
|
|
||||||
function scrollToTop(draw_boxes) {
|
function scrollToTop(draw_boxes) {
|
||||||
removeBoundingBoxes();
|
removeBoundingBoxes();
|
||||||
window.scrollTo({ left: 0, top: 0, behavior: "instant" });
|
window.scroll({ left: 0, top: 0, behavior: "instant" });
|
||||||
if (draw_boxes) {
|
if (draw_boxes) {
|
||||||
var elementsAndResultArray = buildTreeFromBody();
|
var elementsAndResultArray = buildTreeFromBody();
|
||||||
drawBoundingBoxes(elementsAndResultArray[0]);
|
drawBoundingBoxes(elementsAndResultArray[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user