Edits: fix doubleclick-to-scroll-to-top in list view
This commit is contained in:
parent
731c2e88fe
commit
396c69333e
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue