mirror of
https://github.com/discourse/discourse.git
synced 2025-04-25 08:44:28 +08:00
FIX: Regression with quickly hitting back button in vdom branch
This commit is contained in:
parent
2b1e7306e1
commit
bad9835120
@ -34,6 +34,8 @@ export default MountWidget.extend({
|
||||
}).volatile(),
|
||||
|
||||
scrolled() {
|
||||
if (this.isDestroyed || this.isDestroying) { return; }
|
||||
|
||||
const $w = $(window);
|
||||
const windowHeight = window.innerHeight ? window.innerHeight : $w.height();
|
||||
const slack = Math.round(windowHeight * 15);
|
||||
|
Loading…
x
Reference in New Issue
Block a user