Skip to content

Commit

Permalink
fix scrolling failure on some websites (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng authored May 27, 2024
1 parent 20f6fd2 commit eab0793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skyvern/webeye/scraper/domUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ function removeBoundingBoxes() {

function scrollToTop(draw_boxes) {
removeBoundingBoxes();
window.scrollTo({ left: 0, top: 0, behavior: "instant" });
window.scroll({ left: 0, top: 0, behavior: "instant" });
if (draw_boxes) {
var elementsAndResultArray = buildTreeFromBody();
drawBoundingBoxes(elementsAndResultArray[0]);
Expand Down

0 comments on commit eab0793

Please sign in to comment.