mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
BUGFIX: Ember.run.throttle is dodge.
This commit is contained in:
parent
08346974cf
commit
daa5b1f77d
@ -891,8 +891,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
var setupScrollSync = function() {
|
var setupScrollSync = function() {
|
||||||
|
var sync = _.throttle(syncScroll, 20);
|
||||||
$(panels.input).scroll(function() {
|
$(panels.input).scroll(function() {
|
||||||
Ember.run.throttle(null, syncScroll, 16);
|
sync();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -987,7 +988,6 @@
|
|||||||
currentWait = wait;
|
currentWait = wait;
|
||||||
}
|
}
|
||||||
|
|
||||||
//console.log(currentWait);
|
|
||||||
if (timeout) { clearTimeout(timeout); }
|
if (timeout) { clearTimeout(timeout); }
|
||||||
timeout = setTimeout(later, currentWait);
|
timeout = setTimeout(later, currentWait);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user