forked from 0x2620/oxjs
fix icon list 'centered' option and animation
This commit is contained in:
parent
db26a8fb62
commit
e3e3540ef3
2 changed files with 3 additions and 3 deletions
|
|
@ -1089,7 +1089,7 @@ Ox.List = function(options, self) {
|
|||
size;
|
||||
if (self.options.orientation == 'horizontal') {
|
||||
if (self.options.centered) {
|
||||
that.animate({
|
||||
that.stop().animate({
|
||||
scrollLeft: self.listMargin / 2 + (pos + 0.5) * itemWidth
|
||||
- that.width() / 2 + 'px'
|
||||
}, 250);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue