mirror of
https://github.com/discourse/discourse.git
synced 2025-02-12 06:39:28 +08:00
This reverts commit ad0a8cccc8
.
This commit is contained in:
parent
99f0ace229
commit
737e007f01
|
@ -120,11 +120,9 @@ export default class LockOn {
|
||||||
return this.clearLock();
|
return this.clearLock();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!within(4, top, this.previousTop)) {
|
if (!within(4, top, this.previousTop) || !within(4, window.scrollY, top)) {
|
||||||
window.scrollTo(window.pageXOffset, top);
|
window.scrollTo(window.pageXOffset, top);
|
||||||
this.previousTop = top;
|
this.previousTop = top;
|
||||||
} else {
|
|
||||||
return this.clearLock();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stop early when maintaining the original offset
|
// Stop early when maintaining the original offset
|
||||||
|
|
Loading…
Reference in New Issue
Block a user