Closed
Bug 1419527
Opened 8 years ago
Closed 8 years ago
Make spinner.js use new scrollend event instead of a timer to detect when scroll has finished.
Categories
(Core :: Layout: Form Controls, enhancement, P3)
Core
Layout: Form Controls
Tracking
()
RESOLVED
FIXED
mozilla59
| Tracking | Status | |
|---|---|---|
| firefox59 | --- | fixed |
People
(Reporter: mconley, Assigned: scottwu)
References
Details
Attachments
(1 file)
spinner.js is used by our date/time selector widget, and we use a timeout scheme to determine when smooth scrolling has finished - example:
https://searchfox.org/mozilla-central/rev/919dce54f43356c22d6ff6b81c07ef412b1bf933/toolkit/content/widgets/spinner.js#158-165
In bug 1172171, I added a chrome-only scrollend event. We should try using that instead.
| Reporter | ||
Comment 1•8 years ago
|
||
Hey scottwu, interested in seeing if we can use scrollend here instead of the timer?
Flags: needinfo?(scwwu)
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 3•8 years ago
|
||
Thanks for making that event available!
I gave it a try and it works fine with smooth scrolling, but the `scrollend` event doesn't seem to always fire last when I scroll with my trackpad on a mac? I frequently get another `scroll` event after `scrollend`. Is this an expected behaviour?
Flags: needinfo?(scwwu) → needinfo?(mconley)
Updated•8 years ago
|
Priority: -- → P3
| Reporter | ||
Comment 4•8 years ago
|
||
Thanks scottwu - you helped me find a bug in my scrollend event mechanism!
Filed bug 1421351 for that. Once that's fixed, I believe this bug can be addressed.
Depends on: 1421351
Flags: needinfo?(mconley)
| Comment hidden (mozreview-request) |
| Reporter | ||
Comment 7•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8931275 [details]
Bug 1419527 - Use scrollend event to detect when spinner stops.
https://reviewboard.mozilla.org/r/202422/#review209438
Great, thanks!
Attachment #8931275 -
Flags: review?(mconley) → review+
| Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/7a5b6591d679
Use scrollend event to detect when spinner stops. r=mconley
Keywords: checkin-needed
Comment 9•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•