Opened 14 years ago
Closed 14 years ago
#3381 closed bug (invalid)
Queue bug?
Reported by: | populus | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | effects | Version: | 1.2.6 |
Keywords: | Cc: | populus, flesler | |
Blocked by: | Blocking: |
Description
The following code causes problems with queueing. If I click the left button, then click right button two or more times while the animation is still going on, then the entire queue for 'right click' is executing simultaneously
$("div#container div.slider #left").click(function()
{
sr.queue( function()
{
alert(sr.css('left') + " " + (-$(this).width())+'px'); if ($(this).css('left') < '0px') {
$(this).animate({'left': '+=600px'}, 1000);
} $(this).dequeue();
}
);
}
);
$(document).keydown(function(e)
{
if (e.keyCode == 37) {
$("div#container div.slider #left").click();
} else if (e.keyCode == 39) {
$("div#container div.slider #right").click();
}
}
);
Change History (3)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Cc: | populus flesler added |
---|---|
Component: | unfilled → fx |
need: | Review → Test Case |
Owner: | flesler deleted |
Can you make a test case out of this ? one html file with the required js & css. Thanks
comment:3 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Please reopen and attach a test case if the problem is still there. Also check out the .stop()
method if you need to terminate an effect prematurely.
my mistake! Wrong section of code posted
$("div#container div.slider #right").click(function()
);
$("div#container div.slider #left").click(function()
);