From 391403dfbb1a3c3a7db085c890f96c834beb7698 Mon Sep 17 00:00:00 2001 From: olivier stevens Date: Wed, 20 Aug 2014 13:55:57 +0200 Subject: [PATCH 1/3] Correct Bug Galaxy S3 when applying a transition with duration 0ms after a transition with duration !=0ms --- jquery.transit.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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); }); }; From 216268e76a79877b2007359d3e8c8df3a3524956 Mon Sep 17 00:00:00 2001 From: olivier stevens Date: Wed, 1 Oct 2014 13:50:07 +0200 Subject: [PATCH 2/3] #update version --- bower.json | 2 +- component.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index eee1c52..3f7668b 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.91", "keywords": [ "css3", "animation", diff --git a/component.json b/component.json index d77d822..7dddf92 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.91", "keywords": [ "css3", "animation", From 3f9cc843e900a1eedff390bc076fbed4ba114960 Mon Sep 17 00:00:00 2001 From: olivier stevens Date: Wed, 1 Oct 2014 15:38:39 +0200 Subject: [PATCH 3/3] #TEST FOR update version 0.9.92 --- bower.json | 2 +- component.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index 3f7668b..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.91", + "version": "0.9.92", "keywords": [ "css3", "animation", diff --git a/component.json b/component.json index 7dddf92..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.91", + "version": "0.9.92", "keywords": [ "css3", "animation", 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": {