Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of git@github.com:noctambules/jquerymobile-caro…

…usel.git
  • Loading branch information...
commit ac67bed0f73bcab2e0a26adcda83f650ac9604d0 2 parents 2c2c56e + 9307270
@andypa authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 js/jquery.mobile.carousel.js
View
7 js/jquery.mobile.carousel.js
@@ -34,6 +34,9 @@
}
if($(el).css('-moz-transform') || $(el).css('-webkit-transform') || $(el).css('-o-transform') || $(el).css('transform')) {
$(el).css('-webkit-transform', 'translate(-'+translate+'px,0)');
+ $(el).css('-moz-transform', 'translate(-'+translate+'px,0)');
+ $(el).css('-o-transform', 'translate(-'+translate+'px,0)');
+ $(el).css('transform', 'translate(-'+translate+'px,0)');
} else {
$(el).animate({marginLeft: -translate});
}
@@ -50,6 +53,10 @@
if($(el).css('-moz-transform') || $(el).css('-webkit-transform') || $(el).css('-o-transform') || $(el).css('transform')) {
$(el).css('-webkit-transform', 'translate('+translate+'px,0)');
+ $(el).css('-moz-transform', 'translate('+translate+'px,0)');
+ $(el).css('-o-transform', 'translate('+translate+'px,0)');
+ $(el).css('-webkit-transform', 'translate('+translate+'px,0)');
+ $(el).css('transform', 'translate('+translate+'px,0)');
} else {
$(el).animate({marginLeft: translate});
}
Please sign in to comment.
Something went wrong with that request. Please try again.