Skip to content

Commit 255e500

Browse files
committed
Update searchJumper.user.js
1 parent 015d6e6 commit 255e500

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

searchJumper.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8877,8 +8877,8 @@
88778877
let scrollTop = window.pageYOffset || document.documentElement.scrollTop || getBody(document).scrollTop;
88788878
let scrollLeft = window.pageXOffset || document.documentElement.scrollLeft || getBody(document).scrollLeft;
88798879

8880-
clientX = clientRect.x + ew / 2 - (this.funcKeyCall ? this.con.scrollLeft : 0) + scrollLeft;
8881-
clientY = clientRect.y + eh / 2 - (this.funcKeyCall ? this.con.scrollTop : 0) + scrollTop;
8880+
clientX = clientRect.x + ew / 2 - (this.funcKeyCall ? this.con.scrollLeft : 0);
8881+
clientY = clientRect.y + eh / 2 - (this.funcKeyCall ? this.con.scrollTop : 0);
88828882

88838883
clientX -= target.clientWidth / 2;
88848884
let actualTop = clingEle.getBoundingClientRect().top;

0 commit comments

Comments
 (0)