Edits: fix doubleclick-to-scroll-to-top in list view

This commit is contained in:
rlx 2016-01-21 12:54:25 +05:30
parent 731c2e88fe
commit 396c69333e

View file

@ -182,7 +182,13 @@ Ox.ClipPanel = function(options, self) {
.bindEvent({
doubleclick: function(e) {
if ($(e.target).is('.OxBar')) {
self.$list.animate({scrollTop: 0}, 250);
(
self.options.view == 'list'
? self.$list.$body
: self.$list
).animate({
scrollTop: 0
}, 250);
}
}
});