Debounce fading on the leading instead of the trailing edge

(imported from commit 11d0e8938c1f29cfea0678330e7af9884844af21)
This commit is contained in:
Zev Benjamin
2013-08-12 18:02:56 -04:00
parent 29a64b6c59
commit 62f607fd5e

View File

@@ -89,7 +89,7 @@ function _update_faded_messages() {
// See trac #1633. For fast typists, calls to _update_faded_messages can // See trac #1633. For fast typists, calls to _update_faded_messages can
// cause typing sluggishness. // cause typing sluggishness.
exports.update_faded_messages = _.debounce(_update_faded_messages, 50); exports.update_faded_messages = _.debounce(_update_faded_messages, 50, true);
exports.start_compose = function (msg_type) { exports.start_compose = function (msg_type) {
exports.set_focused_recipient(msg_type); exports.set_focused_recipient(msg_type);