Skip to content

Commit

Permalink
Merge pull request #166 from telltrue33/master
Browse files Browse the repository at this point in the history
Fixed bug when applying continuous value to left, top position during animation event
  • Loading branch information
benbarnett authored Jun 15, 2017
2 parents 6153ab3 + c7c46dc commit d578410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/src/jquery.animate-enhanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ Changelog:
}

var is = jQuery.inArray(prop, cssTransitionProperties) > -1;
if ((prop == 'width' || prop == 'height' || prop == 'opacity') && (parseFloat(value) === parseFloat(element.css(prop)))) is = false;
if ((prop == 'width' || prop == 'height' || prop == 'opacity' || prop == 'left' || prop == 'top') && (parseFloat(value) === parseFloat(element.css(prop)))) is = false;
return is;
}

Expand Down

0 comments on commit d578410

Please sign in to comment.