Closed
Bug 1220199
Opened 9 years ago
Closed 9 years ago
[B2GDroid] |scrollTo({behavior: 'smooth'...| doesn't work
Categories
(B2GDroid Graveyard :: General, defect)
B2GDroid Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: etienne, Assigned: fabrice)
References
Details
Attachments
(1 file)
1.60 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
I've been told that APZ might only be working on the root scrollable area on Android, which will never work for Gaia since we have nested scrollable areas all the way down :)
Reporter | ||
Comment 1•9 years ago
|
||
Interestingly snapping is always instant.
We never smoothly scroll to the snapping point, once the snapping kicks in we instantly snap with no transition.
Reporter | ||
Comment 2•9 years ago
|
||
Looks like smooth scrolling in general doesn't work. Which points to the frames not being APZ enabled.
Comment 3•9 years ago
|
||
Are you building with --enable-android-apz in your mozconfig? I don't see that in the confvars for b2gdroid in-tree (but maybe I missed it). Maybe fabrice added that locally when he was building it?
Assignee | ||
Comment 4•9 years ago
|
||
Reporter | ||
Comment 5•9 years ago
|
||
(In reply to Etienne Segonzac (:etienne) from comment #2)
> Looks like smooth scrolling in general doesn't work. Which points to the
> frames not being APZ enabled.
This is still happening.
Pressing home to go back to the top of the homescreen, pressing home to close the utility tray etc...
All of these call |scrollTo({behavior: 'smooth'...| but we get no frame between the current position and the final position. It looks exactly like a "unsmooth" scrollTo().
Reporter | ||
Updated•9 years ago
|
Summary: [B2GDroid] Scrolling performance is so bad it feels like the pre-APZ days → [B2GDroid] |scrollTo({behavior: 'smooth'...| doesn't work
Comment 6•9 years ago
|
||
It's probably running with these two prefs set to false:
http://mxr.mozilla.org/mozilla-central/source/modules/libpref/init/all.js?rev=6111fe8aca39#3651
because of the #ifdef ANDROID. If you set them to true in b2gdroid.js or wrap them in a MOZ_ANDROID_APZ or something it should work.
Updated•9 years ago
|
Component: Panning and Zooming → General
Product: Core → B2GDroid
Assignee | ||
Comment 7•9 years ago
|
||
Works pretty well. Thanks Etienne for spotting that!
Assignee: nobody → fabrice
Attachment #8687333 -
Flags: review?(bugmail.mozilla)
Comment 8•9 years ago
|
||
Comment on attachment 8687333 [details] [diff] [review]
smooth-scroll.patch
Review of attachment 8687333 [details] [diff] [review]:
-----------------------------------------------------------------
r+ for the scroll-behavior pref changes. I don't know about the raptor stuff...
Attachment #8687333 -
Flags: review?(bugmail.mozilla) → review+
Comment 10•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•