mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +02:00
scroll top tool
This commit is contained in:
parent
3256292d41
commit
459469c1d4
5 changed files with 60 additions and 20 deletions
|
@ -15,7 +15,7 @@ export default Ember.Service.extend(Ember.Evented, {
|
|||
init() {
|
||||
let _this = this;
|
||||
|
||||
window.addEventListener("scroll", _.debounce(function() {
|
||||
window.addEventListener("scroll", _.throttle(function() {
|
||||
_this.publish('scrolled', null);
|
||||
}, 100));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue