Skip to content

Commit 1ef5183

Browse files
committed
Bug: Fix typo in scrollLeft setter in Query
1 parent e153019 commit 1ef5183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query/src/query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ export class Query {
13491349
// special case <body> for window scroll
13501350
if (this.isGlobal || this.isBrowser || this.is('html, body')) {
13511351
if (value !== undefined) {
1352-
window.scroll(value, scrollY);
1352+
window.scroll(value, window.scrollY);
13531353
return this;
13541354
}
13551355
return window.scrollX;

0 commit comments

Comments
 (0)