Page MenuHomePhabricator

Bug 1863620 - Use an accelerated animation for overlay scrollbar. r=hiro
ClosedPublic

Authored by emilio on Nov 8 2023, 10:29 AM.
Referenced Files
Unknown Object (File)
Thu, Apr 16, 9:15 AM
Unknown Object (File)
Wed, Apr 8, 8:15 AM
Unknown Object (File)
Wed, Apr 8, 7:42 AM
Unknown Object (File)
Wed, Apr 8, 6:48 AM
Unknown Object (File)
Wed, Apr 8, 5:32 AM
Unknown Object (File)
Tue, Apr 7, 3:37 PM
Unknown Object (File)
Oct 15 2025, 12:30 PM
Unknown Object (File)
Oct 14 2025, 6:37 PM
Subscribers

Details

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
emilio edited the summary of this revision. (Show Details)
hiro requested changes to this revision.Nov 8 2023, 10:12 PM

This is super cool since we can remove one nsARefreshObserver!

Overall looks great other than the changes in nsSliderFrame.cpp. Though I am not sure what the purpose of changing nsGkAtoms::active state is there, there's a comment by the original change author:

Setting [active] attribute needed only in two cases:

  1. After warp slider to current mouse position after left button press on a

scroolbar (scroll-to-click). Also thumb can be dragged to new position until
button isn't released [1].

  1. Firefox doesn't change thumb's state to :active when you drag them by the

right mouse button (instead of the left button).

I did a quick test about 1, in such case the scroll thumb style isn't changed on the latest nightly so I guess it's been regressed at some point? If you think it's a bug, can you file a new bug for the issue? Thanks!

This revision now requires changes to proceed.Nov 8 2023, 10:12 PM

Hmm I somehow chose a different option? I am sorry.

I can't revert my accidental "request changes". I am asking in #Conduit channel.

This revision is now accepted and ready to land.Nov 9 2023, 3:40 AM
servo/components/style/custom_properties.rs
544–554

This creates a duplicate definition of int_ms.

This revision is now accepted and ready to land.Nov 20 2023, 12:05 PM
emilio retitled this revision from Bug 1863620 - Use an accelerated animation for overlay scrollbar. r=tnikkel,hiro,#layout to Bug 1863620 - Use an accelerated animation for overlay scrollbar. r=hiro.