Reset the list scroll postition when changing pages (Closes #144)

This commit is contained in:
RainLoop Team 2014-04-27 02:23:00 +04:00
parent 90d59e108f
commit 0fcd7cf122
5 changed files with 80 additions and 14 deletions

View file

@ -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