mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
SrolltoTop optimization
This commit is contained in:
parent
7841658791
commit
b9a93e82ec
3 changed files with 14 additions and 3 deletions
|
|
@ -640,7 +640,18 @@
|
|||
{
|
||||
if (this.oMessageScrollerDom)
|
||||
{
|
||||
this.oMessageScrollerDom.scrollTop(0);
|
||||
if (50 < this.oMessageScrollerDom.scrollTop())
|
||||
{
|
||||
this.oMessageScrollerDom
|
||||
.scrollTop(50)
|
||||
.animate({'scrollTop': 0}, 200)
|
||||
;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.oMessageScrollerDom.scrollTop(0);
|
||||
}
|
||||
|
||||
Utils.windowResize();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue