Bug Tracker

Modify

Ticket #5473 (closed bug: fixed)

Opened 4 years ago

Last modified 2 years ago

animate fails in IE with very small floating point values

Reported by: city41 Owned by:
Priority: low Milestone: 1.next
Component: effects Version: 1.4.4
Keywords: animate ie needsreview Cc:
Blocking: Blocked by:

Description

If you call animate with a very small floating point value (for example, 4.8e-14), IE will throw a script error "Invalid argument"

I am setting the animate value that small because I am animating objects radially, so I am calculating top/left using sin/cos, and thus for some angles, x or y ends up extremely small. This does not occur in any other browser (tested in Firefox 3.5, Safari 4, Chrome and Opera 10. All in Windows and OSX)

Please see attached example. It's a very tiny repro.

This is occurring for me in IE8 8.07100.0 on Windows7. It occurs in all rendering modes (Standards, Quirks, etc).

Workaround is trivial. If I find the value is very small, I just set it to zero before calling animate.

Attachments

iefail.html Download (333 bytes) - added by city41 4 years ago.
Tiny repro of the bug for IE.

Change History

Changed 4 years ago by city41

Tiny repro of the bug for IE.

comment:1 Changed 3 years ago by john

  • Owner joern deleted
  • Component changed from web to fx

comment:2 Changed 3 years ago by snover

  • Keywords animate needsreview added; animate, removed
  • Priority changed from minor to low
  • Version changed from 1.3.2 to 1.4.4
  • Milestone 1.4 deleted

So I created a  patch for this issue but I am just not sure it is worth fixing in core; it’s not an insignificant amount of code for an *extreme* edge case.

comment:3 Changed 2 years ago by timmywil

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to 1.next

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.