fix doubleclick-to-scroll-to-top in list view
This commit is contained in:
parent
c7515517da
commit
46852d9e4d
1 changed files with 7 additions and 1 deletions
|
@ -50,7 +50,13 @@ pandora.ui.toolbar = function() {
|
|||
(!ui.item ? pandora.$ui.listTitle : pandora.$ui.itemTitle).bindEvent({
|
||||
doubleclick: function() {
|
||||
if (!ui.item) {
|
||||
pandora.$ui.list && pandora.$ui.list.animate({scrollTop: 0}, 250);
|
||||
pandora.$ui.list && (
|
||||
ui.listView == 'list'
|
||||
? pandora.$ui.list.$body
|
||||
: pandora.$ui.list
|
||||
).animate({
|
||||
scrollTop: 0
|
||||
}, 250);
|
||||
} else {
|
||||
pandora.$ui.browser.scrollToSelection();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue