MozillaZine

Can anyone explain mousewheel.default.delta_multiplier?

Discussion about official Mozilla Firefox builds
patrickjdempsey

User avatar
 
Posts: 23733
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted August 13th, 2012, 1:26 pm

I just saw this post from Phil:
viewtopic.php?p=12196871#p12196871

I use both: mousewheel.withnokey.sysnumlines and mousewheel.withnokey.numlines in my extension to revert the hyper-fast page scrolling that has become standard in Firefox. Anyone have ANY idea how those relate to this delta_multiplier mess? How does it relate to LINES OF TEXT scrolled? Or has that been thrown out the window?
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

TheVisitor
 
Posts: 4185
Joined: May 13th, 2012, 10:43 am

Post Posted August 13th, 2012, 1:34 pm

I don't know much about code, but I suspect that https://bugzilla.mozilla.org/show_bug.cgi?id=719320 gutted most of the mousewheel settings / controls in a what appears to me to be a total-rewrite of scrolling.

I could be way off base here..

patrickjdempsey

User avatar
 
Posts: 23733
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted August 13th, 2012, 2:57 pm

Yeah that's exactly what has happened. I'm just extremely confused as to how a "delta_multiplier" relates to "numlines" or if it's not even quantifiable.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

Groovy Gregor
 
Posts: 15
Joined: July 5th, 2010, 5:32 am

Post Posted August 13th, 2012, 3:06 pm

It's exactly what it says it is, a delta multiplier (in percentage). If default settings scroll 150 pixels, changing that pref to 200 will cause firefox to scroll 300 pixels, and changing it to 50 will cause it to scroll 75 pixels.

patrickjdempsey

User avatar
 
Posts: 23733
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted August 13th, 2012, 3:09 pm

That sounds like it will be dramatically different from OS to OS and even different based on OS scroll settings. Which would make it non-quantifiable. Brilliant work there.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

patrickjdempsey

User avatar
 
Posts: 23733
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted August 13th, 2012, 3:22 pm

Groovy Gregor wrote:It's exactly what it says it is, a delta multiplier (in percentage).


Also, I'm not an idiot, but I'm also not a mathematician. If this is an improvement, it certainly isn't in usability.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

KWierso
 
Posts: 8831
Joined: May 7th, 2006, 10:29 pm
Location: California

Post Posted August 13th, 2012, 8:39 pm


patrickjdempsey

User avatar
 
Posts: 23733
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted August 13th, 2012, 8:50 pm

Yeah I read that. No clue what it means.

Edit: I went to art school. ;)
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

patrickjdempsey

User avatar
 
Posts: 23733
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted August 13th, 2012, 8:58 pm

What especially makes no sense to me is that recently they changed Firefox to scroll twice as fast as it used to... from 3 lines to 6. I just want to disable that and revert to the slower (more readable) scrolling. It used to be simple:

mousewheel.withnokey.sysnumlines: false
mousewheel.withnokey.numlines: 3

Any ideas on how to adjust the new settings or which ones to change (since they replaced the already verbose 3 dozen settings with 4 dozen).
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

KWierso
 
Posts: 8831
Joined: May 7th, 2006, 10:29 pm
Location: California

Post Posted August 13th, 2012, 9:08 pm

You'd probably need to post to moz.dev.platform or hop on #developers on IRC to figure out what the equivalent values would be.
I only have touchpads and touch mice at the moment, so I can't play around with a mousewheel.

patrickjdempsey

User avatar
 
Posts: 23733
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted August 13th, 2012, 9:16 pm

After mucking about with it, I think I've found it:

mousewheel.system_scroll_override_on_root_content.enabled;false

Which is equivalent of:

mousewheel.system_scroll_override_on_root_content.horizontal.factor;100
mousewheel.system_scroll_override_on_root_content.vertical.factor;100

I found it because those values were set to 200... so twice the scrolling. *facepalm* What I don't know, and have no way of confirming, is whether or not that is true on other OS's.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

rclick

User avatar
 
Posts: 19
Joined: June 5th, 2010, 1:04 am

Post Posted August 13th, 2012, 10:13 pm

Looking at all.js, the override seems to be enabled on Windows and disabled everywhere else. There's also a comment about the prefs at http://mxr.mozilla.org/mozilla-central/source/modules/libpref/src/init/all.js#1371.

Code: Select all
// Prefs for override the system mouse wheel scrolling speed on the root
// content of the web pages.  When
// "mousewheel.system_scroll_override_on_root_content.enabled" is true and the system
// scrolling speed isn't customized by the user, the root content scrolling
// speed is multiplied by the following factors.  The value will be used as
// 1/100.  E.g., 200 means 2.00.
// NOTE: Even if "mousewheel.system_scroll_override_on_root_content.enabled" is
// true, when Gecko detects the user customized the system scrolling speed
// settings, the override isn't executed.
pref("mousewheel.system_scroll_override_on_root_content.vertical.factor", 200);
pref("mousewheel.system_scroll_override_on_root_content.horizontal.factor", 200);

patrickjdempsey

User avatar
 
Posts: 23733
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted August 13th, 2012, 10:20 pm

Hmm. So I'm wondering if on other OS's the scroll distance is greater natively, or if they are low and Windows is the only OS Mozilla wanted to bugger with.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

wworonick
 
Posts: 1
Joined: July 29th, 2013, 9:10 pm

Post Posted July 29th, 2013, 9:31 pm

I have discovered a way to restore the mouse wheel scrolling from 6 lines back to 3, that works for Firefox 22.0, Windows 7 Professional, and a Lenovo Mouse. Change mousewheel.default.delta_multiplier_z from 100 to 50. This changes both vertical, and horizontal. After making the change, I noticed that changing mousewheel.default.delta_multiplier_x from anywhere from 33 to 200 will not make any difference, but only changing mousewheel.default.delta_multiplier_y. Values of mousewheel.default.delta_multiplier_y below 100, changes the mouse wheel scrolling to 1 line; changing mousewheel.default.delta_multiplier_y to 200, changes the scrolling lines back to 6. So, it looks like if you change mousewheel.default.delta_multiplier_z, you will have to live with changes to both vertical, and horizontal scrolling.

LIMPET235
Moderator

User avatar
 
Posts: 37306
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Post Posted July 30th, 2013, 5:37 am

Locking due to old age.
Ancient Amateur Astronomer
Win-7-HP/IntelĀ® DualCore-2.0GHz/500G HDD/4 Gig Ram/550Watt PSU/350WattUPS/Firefox-20.0-50.0/T-bird-2.0.0.24/SnagIt-v10.0.1/MWP-7.11.0.
RadioYachting. Conficker Test. (Always choose the "Custom" Install.)

Return to Firefox Builds


Who is online

Users browsing this forum: Bing [Bot] and 3 guests