mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Reset the list scroll postition when changing pages (Closes #144)
This commit is contained in:
parent
90d59e108f
commit
0fcd7cf122
5 changed files with 80 additions and 14 deletions
|
|
@ -582,6 +582,29 @@ Selector.prototype.scrollToFocused = function ()
|
|||
return false;
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {boolean=} bFast = false
|
||||
* @return {boolean}
|
||||
*/
|
||||
Selector.prototype.scrollToTop = function (bFast)
|
||||
{
|
||||
if (!this.oContentVisible || !this.oContentScrollable)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (bFast)
|
||||
{
|
||||
this.oContentScrollable.scrollTop(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.oContentScrollable.stop().animate({'scrollTop': 0}, 200);
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
Selector.prototype.eventClickFunction = function (oItem, oEvent)
|
||||
{
|
||||
var
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue