Opened 12 years ago

Last modified 11 years ago

#6275 closed defect

dojo.fx.sizeTo Behavioral Defect? — at Version 4

Reported by: [email protected] Owned by: dante
Priority: high Milestone: 1.4
Component: Dojox Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

This is not necessarily a bug. I'll just describe the setup and end result, and let you be the judge.

I changed the duration on the sizeTo animations in the sizeTo test to 550. Now if I move the mouse over the "Hover/exit" animation, such that it is only over the node for an instant, the animation that collapse the node gets stuck. It appears that the second animation in the chain that collapses the node back down does not execute.

Here are the parts that I changed (Only the duration):

        var test1 = function(e){
                // this is our click test,
                dojox.fx.sizeTo({
                        node: e.target,
                        width: 120,
                        height:120,
                        duration:550                        
                }).play(5);
        };
        
        var testundo = function(e){
                dojox.fx.sizeTo({
                        node: e.target,
                        width:50,
                        height:50,
                        duration:550                        
                }).play(5);
                
                
        };
        
        var test2 = function(e){
                dojox.fx.sizeTo({
                      node: e.target,
                      width: 120,
                      height:120,
                      duration:550,
                      method:"combine"
                }).play(5);
        };

SO if you make similar changes and try it, you should see the same effect. I ran the test in firefox 2.0.

Cheers,

  • Ole

Change History (4)

comment:1 Changed 12 years ago by guest

If the testundo method is set to "combine", then the node collapse no regardless of the time interval that the mouse hovers for.

var testundo = function(e){

dojox.fx.sizeTo({

node: e.target, width:50, height:50, duration:550, method:"combine"

}).play(5);

comment:2 Changed 12 years ago by dante

Owner: changed from anonymous to dante

comment:3 Changed 12 years ago by guest

This is OT. I just noticed that the testundo connects to "onmouseenter", which according to this is microsft only.

http://www.quirksmode.org/js/events_mouse.html

I'm assuming it's better for future testers, if "onmouseover" is used instead.

comment:4 Changed 12 years ago by bill

Cc: [email protected] removed
Component: Generalfx
Description: modified (diff)
Reporter: changed from guest to [email protected]

Not sure which test you are talking about, but onmouseenter is supported across all browsers by dojo, see #4307.

Note: See TracTickets for help on using tickets.