Skip to content

Commit 70f662b

Browse files
committed
Unroll the ( || ) in the math - Fixes #12497 - Thanks @lukemelia @curiousdannii - Closes jquerygh-1019
(cherry picked from commit 8773067)
1 parent 08894dc commit 70f662b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/effects.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ function Animation( elem, properties, options ) {
8282
tick = function() {
8383
var currentTime = fxNow || createFxNow(),
8484
remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
85-
percent = 1 - ( remaining / animation.duration || 0 ),
85+
// archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
86+
temp = remaining / animation.duration || 0,
87+
percent = 1 - temp,
8688
index = 0,
8789
length = animation.tweens.length;
8890

0 commit comments

Comments
 (0)