Skip to content

Commit 8773067

Browse files
committed
Unroll the ( || ) in the math - Fixes #12497 - Thanks @lukemella @curiousdannii - Closes jquerygh-1019
1 parent 31a19a8 commit 8773067

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
@@ -81,7 +81,9 @@ function Animation( elem, properties, options ) {
8181
tick = function() {
8282
var currentTime = fxNow || createFxNow(),
8383
remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
84-
percent = 1 - ( remaining / animation.duration || 0 ),
84+
// archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
85+
temp = remaining / animation.duration || 0,
86+
percent = 1 - temp,
8587
index = 0,
8688
length = animation.tweens.length;
8789

0 commit comments

Comments
 (0)