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)

enhancement

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.
Hey scottwu, interested in seeing if we can use scrollend here instead of the timer?
Flags: needinfo?(scwwu)
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)
Priority: -- → P3
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)
Yes the issue has gone away, thanks!
Assignee: nobody → scwwu
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+
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
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: