Bug Tracker

Modify

Ticket #3946 (closed bug: fixed)

Opened 4 years ago

Last modified 3 years ago

Some UI effects fail in 1.3

Reported by: kbwood Owned by:
Priority: minor Milestone: 1.3.1
Component: effects Version: 1.3
Keywords: Cc:
Blocking: Blocked by:

Description (last modified by kbwood) (diff)

In upgrading to 1.3 I noted that several of the UI effects (such as bounce and fold) no longer work correctly. After some testing I noted the following combinations:

1.2.6 and UI 1.5.3 - works

1.2.6 and UI 1.6rc5 - works

1.3 and UI 1.5.3 - doesn't work

1.3 and UI 1.6rc5 - doesn't work

Thus there has been some change between 1.2.6 and 1.3 that has broken these animations. The animation seems to stop half way through without raising an apparent error. This leaves the animated division in a non-displayable state.

Attachments

animtest.html Download (1.5 KB) - added by kbwood 4 years ago.
Testing harness with datepicker and animations

Change History

Changed 4 years ago by kbwood

Testing harness with datepicker and animations

comment:1 Changed 4 years ago by kbwood

  • Description modified (diff)

comment:2 Changed 4 years ago by kbwood

I've traced the problem to the speed function. When this is passed a speed value that is NaN it passes that through to the animation. This is because typeof (NaN) evaluates to 'number', which it isn't. So I think the test should be:

opt.duration = jQuery.fx.off ? 0 :

typeof opt.duration === "number" && !isNaN(opt.duration) ? opt.duration :

jQuery.fx.speeds[opt.duration]
jQuery.fx.speeds._default;

comment:3 Changed 4 years ago by kbwood

There should be two vertical bars between the two values on the last line of code - they don't seem to show up!

comment:4 Changed 4 years ago by scott.gonzalez

This has been fixed in UI, see  UI #3912.

comment:5 Changed 4 years ago by dmethvin

  • Component changed from unfilled to fx

comment:6 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in UI.

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.