From a981594b1d2ee5da37de711e7b4fc8f7d7c84c9c Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 20 Jul 2017 00:52:44 -0700 Subject: [PATCH] Revert node's scrolling into view in page.click() This change was not intentional in e33a8f818c --- lib/Page.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Page.js b/lib/Page.js index 554f9e6fe43..88091bffedb 100644 --- a/lib/Page.js +++ b/lib/Page.js @@ -555,7 +555,6 @@ class Page extends EventEmitter { let node = document.querySelector(selector); if (!node) return null; - node.scrollIntoView(); let rect = node.getBoundingClientRect(); return { x: (rect.left + rect.right) / 2,