1
0
Fork 0
forked from 0x2620/oxjs

fix icon list 'centered' option and animation

This commit is contained in:
rolux 2012-12-13 02:25:32 +01:00
commit e3e3540ef3
2 changed files with 3 additions and 3 deletions

View file

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