Add new pref mousehweel.autodir.any_elements.enabled. when being false, autodir will be selectively enabled.
Categories
(Core :: DOM: UI Events & Focus Handling, enhancement)
Tracking
()
People
(Reporter: zjz, Unassigned)
References
Details
bug 1358017 provided the mousewheel direction-adaptive ability, which focuses on improving horizontal scrolling UX on vertical writing pages.
But since the pref mousewheel.autodir.enabled only allows users to either completely enable or disable it, which makes it enabled by default undesirable.
We can change mousewheel.autodir.enabled to mousewheel.autodir.level, which can be set to three integer values:
Level 0: Completely disabling autodir (this is the same as false in mousewheel.autodir.enabled);
Level 1: Only enabling it when the the top level of the page is horizontally scrollable but vertically unscrollable, and the writing mode of the top level of the page is vertical (I.E. vertical-rl or vertical-lr in CSS);
Level 2: Completely enabling autodir (this is the same as true in mousewheel.autodir.enabled).
By changing the pref mousewheel.autodir.enabled to mousewheel.autodir.level, we can makes the level 1 as the default, so autodir will do its best by default.
| Reporter | ||
Comment 1•4 years ago
•
|
||
I thinks this is pretty much the most reasonable solution that I can come up with.
Masayuki, what's your opinion on this?
If there's no issue with the solution, I would like to take on the issue.
Comment 2•4 years ago
|
||
Sounds reasonable to me changing the pref design. On the other hand, it's hard to change the default behavior to different one from Chrome due to the current market share.
And for solving changing the trigger, I'd love just adding new pref rather than using an integer pref because the meaning of the number is not clear in the UI of about:config. How about to add mousehweel.autodir.any_elements.enabled whose default value is false?
| Reporter | ||
Comment 3•4 years ago
•
|
||
(In reply to Masayuki Nakano [:masayuki] (he/him)(JST, +0900) from comment #2)
Sounds reasonable to me changing the pref design. On the other hand, it's hard to change the default behavior to different one from Chrome due to the current market share.
And for solving changing the trigger, I'd love just adding new pref rather than using an integer pref because the meaning of the number is not clear in the UI of
about:config. How about to addmousehweel.autodir.any_elements.enabledwhose default value isfalse?
I agree with you. Adding the new pref does make the meaning clearer.
I am going to take on this issue once I get enough free time.
BTW, for Chrome, I would like to submit pretty much another proposal which is pretty much the same as this one, so that the default behaviour of Chrome will be completely the same as autodir.enabled being true and autodir.any_elements.enabled being false in Firefox.
| Reporter | ||
Updated•4 years ago
|
Description
•