Closed Bug 1266205 Opened 9 years ago Closed 9 years ago

Increase delay for scrollbar fadeout (or make it configurable for distributions)

Categories

(Firefox for Android Graveyard :: Android partner distribution, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Margaret, Assigned: mkaply)

Details

We receieved a partner request to increase our scrollbar fadeout time to 3 seconds. If we think this is too long, and something we don't want to do, we should explore making this configurable for distributions. If we make a gecko pref for this, it could be easily set by distributions.
To be clear this is the FADE_DELAY. As in how long we wait until the scrollbar goes away. We are not allowing them to modify how long it takes to fade.
With APZ enabled you can use the ui.scrollbarFadeBeginDelay pref to control this (defaults to 450ms in mobile.js).
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #2) > With APZ enabled you can use the ui.scrollbarFadeBeginDelay pref to control > this (defaults to 450ms in mobile.js). In this case there may be nothing to fix here :) Still waiting to hear back about timelines, hopefully this isn't urgent, in which case we can just wait for APZ to ride the trains.
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #2) > With APZ enabled you can use the ui.scrollbarFadeBeginDelay pref to control > this (defaults to 450ms in mobile.js). So I take it ScrollbarLayer isn't used in APZ anymore? The last time I changed the constant, it was in that class: https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/gfx/ScrollbarLayer.java#22
Correct, with APZ we use the gecko scrollbars and will be able to delete ScrollbarLayer entirely.
APZ is in release now, so the pref should be sufficient to change the fadeout delay.
Assignee: nobody → mozilla
Component: Graphics, Panning and Zooming → Distributions
No longer depends on: fennec-aboard-apz
> APZ is in release now, so the pref should be sufficient to change the fadeout delay. What's the pref exactly and how do I set? Thanks.
The pref is ui.scrollbarFadeBeginDelay which defaults to 450 in Fennec [1]. In theory you should be able to change it via about:config although I just tried that and about:config gives me up/down arrows for that pref which don't do anything and generally seems kinda busted. But you should still be able to change it by modifying mobile.js. [1] http://searchfox.org/mozilla-central/source/mobile/android/app/mobile.js#61
> In theory you should be able to change it via about:config although I just tried that and about:config gives me up/down arrows for that pref which don't do anything and generally seems kinda busted. If you click on the number, you can edit it directly instead of using the arrows. I've verified that this is customizable and works great.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.