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:
cst%andrew.cmu.edu 2005-10-17 00:07:57 +00:00
parent 9125d9fa0e
commit 88cb7a65b5
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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")