1
0
Fork 0
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:
Harvey Kandola 2016-10-05 17:12:47 -07:00
parent 3256292d41
commit 459469c1d4
5 changed files with 60 additions and 20 deletions

View file

@ -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));