Use native smooth-scrolling where supported

RESOLVED FIXED

Status

www.mozilla.org
Pages & Content
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: agibson, Assigned: jpetto)

Tracking

Production

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [kb=1768220])

(Reporter)

Description

3 years ago
Firefox now has native smooth-scrolling API [1]

We could look to make a simple JS polyfill, which falls back to the current jQuery animation when the native API is not yet supported. A good usage example would be on the /firefox/os/devices/ page [2], where clicking either "Phones" or "Televisions" scrolls down the page.

[1] http://blog.gospodarets.com/native_smooth_scrolling/
[2] https://www.mozilla.org/firefox/os/devices/
(Reporter)

Updated

3 years ago
Whiteboard: [kb=1768220]
I'm using the new API in my BzDeck app and it's pretty nice.
(Assignee)

Updated

3 years ago
Assignee: nobody → jon

Comment 2

3 years ago
Commits pushed to master at https://github.com/mozilla/bedrock

https://github.com/mozilla/bedrock/commit/a188202771d6498daf7959b08d1c8691813669d0
Bug 1171859. Build & use smooth scrolling polyfill.

https://github.com/mozilla/bedrock/commit/0d29bd469659e722e147a0673691c85361bbae6f
Merge pull request #3113 from jpetto/bug-1171859-native-smooth-scrolling

Bug 1171859. Build & use smooth scrolling polyfill.
(Reporter)

Updated

3 years ago
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.