Commit 95bf69b8 authored by JC Brand's avatar JC Brand

Maintain simplicity by using only one variable instead of two

parent f1c8de15
...@@ -999,13 +999,6 @@ ...@@ -999,13 +999,6 @@
* received. * received.
*/ */
if (ev && ev.preventDefault) { ev.preventDefault(); } if (ev && ev.preventDefault) { ev.preventDefault(); }
if (this.model.get('auto_scrolled')) {
this.model.set({
'scrolled': false,
'auto_scrolled': false
});
return;
}
let scrolled = true; let scrolled = true;
const is_at_bottom = const is_at_bottom =
(this.content.scrollTop + this.content.clientHeight) >= (this.content.scrollTop + this.content.clientHeight) >=
...@@ -1030,8 +1023,6 @@ ...@@ -1030,8 +1023,6 @@
} }
if (u.isVisible(this.content) && !this.model.get('scrolled')) { if (u.isVisible(this.content) && !this.model.get('scrolled')) {
this.content.scrollTop = this.content.scrollHeight; this.content.scrollTop = this.content.scrollHeight;
this.onScrolledDown();
this.model.save({'auto_scrolled': true});
} }
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment