Ticket #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 | |
| Blocking: | Blocked by: |
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
comment:2 Changed 5 years ago by flesler
- Cc populus, flesler added
- need changed from Review to Test Case
- Component changed from unfilled to fx
- Owner flesler deleted
Can you make a test case out of this ? one html file with the required js & css. Thanks
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

my mistake! Wrong section of code posted
$("div#container div.slider #right").click(function()
);
$("div#container div.slider #left").click(function()
);