From 4624974b91c1dc6315bc1ba8ba6ade6010192f7b Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 28 Nov 2022 18:04:02 +0100 Subject: [PATCH] BrowserSteps - Element finder filter (offpage) should also calculate top scroll offset --- changedetectionio/res/xpath_element_scraper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/res/xpath_element_scraper.js b/changedetectionio/res/xpath_element_scraper.js index 99cc2162..743e1f5d 100644 --- a/changedetectionio/res/xpath_element_scraper.js +++ b/changedetectionio/res/xpath_element_scraper.js @@ -87,7 +87,7 @@ for (var i = 0; i < elements.length; i++) { } // Don't include elements that are offset from canvas - if (bbox['top'] < 0 || bbox['left'] < 0) { + if (bbox['top']+scroll_y < 0 || bbox['left'] < 0) { continue; }