Bug Tracker

Ticket #1051 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Animations are running when they shouldn't be

Reported by: daemach Assigned to: anonymous
Type: enhancement Priority: major
Milestone: 1.1.3 Component: fx
Version: 1.1.2 Keywords: fade slide
Cc: Needs:

Description

I'm working with the fade and slide animations now, and while testing I've hit a couple of points where an element tried to slideIn when it was already ... in, and fadeOut when it was already...out. In both cases the animation starts from the beginning, fully hiding the element and sliding it in or showing the element and fading it out.

I know I can handle it in my code, but the behavior seems a little less intelligent than it could be. If someone calls a fadeout function the end result is display:none - likewise for a slideup. Therefore, if the element style is already display:none the function is technically successful. Can this check be worked into the core logic? It would make the library feel smarter.

Attachments

Change History

Changed 2 years ago by john

  • status changed from new to closed
  • resolution set to fixed

Fixed in SVN rev [1542].

Note: See TracTickets for help on using tickets.