#21531 closed defect (bug) (fixed)
Twenty Twelve: Stop the navigation slide animation when clicking the button multiple times
Reported by: | Jayjdk | Owned by: | lancewillett |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | minor | Version: | |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description
In Twenty Twelve, clicking the "Show navigation" button many times in a row causes a queue build up, where the navigation just slides up and down till it's done.
I've attached a patch that adds .stop()
before .slideToggle()
"When .stop() is called on an element, the currently-running animation (if any) is immediately stopped" - http://api.jquery.com/stop/
Attachments (1)
Change History (6)
#2
@
12 years ago
- Summary changed from Twenty Twelve: Navigation queue build up to Twenty Twelve: Stop the navigation slide animation when clicking the button multiple times
#4
@
12 years ago
- Owner set to lancewillett
- Resolution set to fixed
- Status changed from new to closed
In [21519]:
#5
@
12 years ago
I'm not sure that you're asking about. I noticed that the slide continued when I clicked the button multiple times. I remembered reading this article http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup on how to prevent that.
Note: See
TracTickets for help on using
tickets.
Thanks for the report. Just for the sake of clarity, can you share how you debugged the queue build-up -- and steps to repeat it exactly?