mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
FIX: Regression with quickly hitting back button in vdom branch
This commit is contained in:
parent
2b1e7306e1
commit
bad9835120
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue