Remove the unused dataset
checks from the scrollIntoView
helper function
This code was added in PR 3968, apparently in order to fix scrolling of search results in HiDPI-mode. However, after PR 4570 nothing is setting these `dataset`-properties any more and this is thus dead code which should be removed. (If that change had broken scrolling of search results in HiDPI-mode, you'd really expect that it'd been reported and fixed a long time ago.)
This commit is contained in:
parent
9165dc0659
commit
2a35b39c46
@ -117,12 +117,9 @@ function scrollIntoView(element, spot, skipOverflowHiddenElements = false) {
|
|||||||
(skipOverflowHiddenElements &&
|
(skipOverflowHiddenElements &&
|
||||||
getComputedStyle(parent).overflow === "hidden")
|
getComputedStyle(parent).overflow === "hidden")
|
||||||
) {
|
) {
|
||||||
if (parent.dataset._scaleY) {
|
|
||||||
offsetY /= parent.dataset._scaleY;
|
|
||||||
offsetX /= parent.dataset._scaleX;
|
|
||||||
}
|
|
||||||
offsetY += parent.offsetTop;
|
offsetY += parent.offsetTop;
|
||||||
offsetX += parent.offsetLeft;
|
offsetX += parent.offsetLeft;
|
||||||
|
|
||||||
parent = parent.offsetParent;
|
parent = parent.offsetParent;
|
||||||
if (!parent) {
|
if (!parent) {
|
||||||
return; // no need to scroll
|
return; // no need to scroll
|
||||||
|
Loading…
x
Reference in New Issue
Block a user