diff --git a/bower.json b/bower.json index eee1c52..75e852f 100644 --- a/bower.json +++ b/bower.json @@ -2,7 +2,7 @@ "name": "jquery.transit", "repo": "rstacruz/jquery.transit", "description": "Smooth CSS3 transitions and transformations for jQuery.", - "version": "0.9.12", + "version": "0.9.92", "keywords": [ "css3", "animation", diff --git a/component.json b/component.json index d77d822..ed01baf 100644 --- a/component.json +++ b/component.json @@ -2,7 +2,7 @@ "name": "jquery.transit", "repo": "rstacruz/jquery.transit", "description": "Smooth CSS3 transitions and transformations for jQuery.", - "version": "0.9.12", + "version": "0.9.92", "keywords": [ "css3", "animation", diff --git a/jquery.transit.js b/jquery.transit.js index 67e05e4..1c56bcb 100644 --- a/jquery.transit.js +++ b/jquery.transit.js @@ -616,6 +616,12 @@ // If there's nothing to do... if (i === 0) { var fn = function(next) { + //to correct a bug with the GALAXY S3 native browser + //if never you apply a transtion with duration 0ms after an transition with a duration != 0ms + //with only '$(this).css(theseProperties);' the browser does a transition on GALAXY S3 native browser (webkit custom by Samsung) + //Adding this.style[support.transition] = transitionValue; makes the browser doing the transition with duration 0ms as expected, and no bug has been detected over other browsers + //test on WP8, ios7-safari, android-2.3, android-chrome, android-firefox, computer-chrome, computer-firefox + this.style[support.transition] = transitionValue; self.css(theseProperties); if (callback) { callback.apply(self); } if (next) { next(); } @@ -656,9 +662,12 @@ // Apply transitions. self.each(function() { - if (i > 0) { - this.style[support.transition] = transitionValue; - } + //Remove the i > 0 conditions, to correct a bug with the GALAXY S3 native browser - + //if never you apply a transtion with duration 0ms after an transition with a duration != 0ms + //with only '$(this).css(theseProperties);' the browser does a transition on GALAXY S3 native browser (webkit custom by Samsung) + //Adding this.style[support.transition] = transitionValue; makes the browser doing the transition with duration 0ms as expected, and no bug has been detected over other browsers + //test on WP8, ios7-safari, android-2.3, android-chrome, android-firefox, computer-chrome, computer-firefox + this.style[support.transition] = transitionValue; $(this).css(theseProperties); }); }; diff --git a/package.json b/package.json index 78336e7..a53c38d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jquery.transit", - "version": "0.9.12", + "version": "0.9.92", "description": "Smooth CSS3 transitions and transformations for jQuery.", "main": "jquery.transit.js", "directories": {