mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 02:48:48 +00:00
Bug 310380 middlemouse autoscroll should default off for UNIX/Linux (X) environment
Patch by Hogarth <bugzilla@throwaway.weebeastie.net> r=me sr=neil
This commit is contained in:
parent
9125d9fa0e
commit
88cb7a65b5
@ -55,6 +55,7 @@ pref("general.open_location.last_url", "");
|
||||
pref("general.open_location.last_window_choice", 0);
|
||||
|
||||
pref("general.smoothScroll", false);
|
||||
pref("general.autoScroll", true);
|
||||
|
||||
#expand pref("general.useragent.extra.__MOZ_APP_NAME__", "__MOZ_APP_DISPLAYNAME__/__MOZ_APP_VERSION__");
|
||||
|
||||
@ -251,6 +252,8 @@ pref("browser.urlbar.clickSelectsAll", false);
|
||||
// 1 act like pgup
|
||||
// 2 and other values, nothing
|
||||
pref("browser.backspace_action", 1);
|
||||
|
||||
pref("general.autoScroll", false);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -581,9 +581,15 @@ var gAutoScrollPopup = null;
|
||||
|
||||
function startScrolling(event)
|
||||
{
|
||||
var pref = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
|
||||
if (gScrollingView || event.button != 1)
|
||||
return;
|
||||
|
||||
if (!pref.getBoolPref("general.autoScroll"))
|
||||
return;
|
||||
|
||||
if (event.originalTarget instanceof XULElement &&
|
||||
((event.originalTarget.localName == "thumb")
|
||||
|| (event.originalTarget.localName == "slider")
|
||||
|
Loading…
x
Reference in New Issue
Block a user