mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Smooth reload animation
This commit is contained in:
parent
de06ab1a41
commit
18931eaca0
6 changed files with 97 additions and 16 deletions
|
|
@ -51,6 +51,7 @@
|
|||
this.messageListLoading = ko.observable(false);
|
||||
this.messageListIsNotCompleted = ko.observable(false);
|
||||
this.messageListCompleteLoadingThrottle = ko.observable(false).extend({'throttle': 200});
|
||||
this.messageListCompleteLoadingThrottleForAnimation = ko.observable(false).extend({'specialThrottle': 700});
|
||||
|
||||
this.messageListDisableAutoSelect = ko.observable(false).extend({'falseTimeout': 500});
|
||||
|
||||
|
|
@ -164,7 +165,9 @@
|
|||
MessageUserStore.prototype.subscribers = function ()
|
||||
{
|
||||
this.messageListCompleteLoading.subscribe(function (bValue) {
|
||||
bValue = !!bValue;
|
||||
this.messageListCompleteLoadingThrottle(bValue);
|
||||
this.messageListCompleteLoadingThrottleForAnimation(bValue);
|
||||
}, this);
|
||||
|
||||
this.messageList.subscribe(_.debounce(function (aList) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue