Closed
Bug 333928
Opened 20 years ago
Closed 20 years ago
no autoscroll in camino 1.0
Categories
(Camino Graveyard :: General, defect)
Tracking
(Not tracked)
VERIFIED
WONTFIX
People
(Reporter: jgeorgeson, Unassigned)
Details
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.1) Gecko/20060214 Camino/1.0
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.1) Gecko/20060214 Camino/1.0
Clicking the scroll wheel in Firefox on all platforms turns on autoscroll mode, but this feature seems to be removed from Camino. I know that UIs for some features are removed from Camino as it's generally believe users are too stupid to handle them, but in this case the about:config settting of general.autoScroll doesn't even exist. I'd really like to see autoscroll re-added.
I search the mozillazine.org camino forum and also bugzilla's camino product and couldn't find anything explaining why this feature was removed.
Reproducible: Always
Steps to Reproduce:
1. Click the mouse-wheel in any otherwise non-clickable area of a web page
Actual Results:
nothing
Expected Results:
autoscroll mode
Comment 1•20 years ago
|
||
Firefox and Camino don't share UI for the most part. UI isn't 'removed' for Camino, it's just implemented in Firefox but not Camino (sometimes deliberately, sometimes because of developer availability).
Are there enough other OS X apps that use autoscroll that it makes sense to add support in Camino?
Comment 2•20 years ago
|
||
I don't recall ever seeing any Mac OS apps where autoscroll *is* implemented, but I haven't used a clickable-scroll-wheel mouse much on the Mac, either.
Personally, I find the behaviour on Windows to be rather infuriating, and since the scroll wheel maps by default to middle-click on Mac OS (which has other behaviour), I think this is a WONTFIX.
cl
Stuart, appologies for my misunderstanding. I thought Camino had the same underlying features (everything in about:config) as Firefox. So when I saw that this feature was not in about:config for Camino, I assumed it had been removed. Firefox is the only other app I can think of. Internt Explorer probably had it (IE on Windows is the first place I ever saw autoscroll), but I never installed that. Why would it matter if everyone else is doing it? Default it to disabled and only the people who care about it will be affected.
Chris, I have yet to see middle-click do anything anywhere except open links in new tabs in web browsers. What should I be seeing as the default universal middle-click behavior? What possible harm could there be to put general.autoScroll in about:config and default it to false? People like me will appreciate that it's there and nobody else will even know.
Comment 4•20 years ago
|
||
(In reply to comment #3)
> that. Why would it matter if everyone else is doing it? Default it to
Because it's a non-standard feature.
> Chris, I have yet to see middle-click do anything anywhere except open links in
> new tabs in web browsers.
Right. I *think* there are beginning to be some more default middle-click behaviours elsewhere in the OS as Apple has begun shipping a mouse with a middle button, but I can't recall what these are off the top of my head.
> middle-click behavior? What possible harm could there be to put
> general.autoScroll in about:config and default it to false? People like me will
> appreciate that it's there and nobody else will even know.
Write a patch, and it's likely to be at least considered ;) There wouldn't be any harm in that at all, except for the fact that, as I already mentioned, it's a non-standard feature and implementing it is probably a waste of developer time. (I've been active in the Camino community for about 18 months now and a Camino user since about version 0.4, and this is the first time I've ever heard anyone request this feature. That should give you some idea of the demand for it.)
cl
There aren't enough apps on the Mac that do this for it to make sense for us to spend the time to implement this non-standard feature.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
I know this has been close already, but I've been trying to look at the source code to see what it would take. What I've found so far is that the basic autoscroll feature seems to be implemented in javascript, in utilityOverlay.js and contentAreaClick.js, both of which are in mozilla/xpfe/communicator/resources/content. There is a function contentAreaMouseDown(event) in contentAreaClick.js
function contentAreaMouseDown(event)
{
if (event.button == 1 && (event.target != event.currentTarget)
&& !hrefAndLinkNodeForClickEvent(event)
&& !isAutoscrollBlocker(event.originalTarget)) {
startScrolling(event);
return false;
}
return true;
}
The isAutoScrollBlocker function (same file) checks some document properties and two preferences
if (pref.getBoolPref("middlemouse.contentLoadURL"))
return true;
if (!pref.getBoolPref("middlemouse.paste"))
return false;
The startScrolling(event) function is in utilityOverlay.js and checks for this preference
if (!pref.getBoolPref("general.autoScroll"))
return;
I tried adding "general.autoscroll" pref in ~/Library/Application Support/Camino/prefs.js but that didn't work. I think this is currently using XUL to display the icon for autoscroll mode, as there are several instances of the string XUL in this function.
if (!gAutoScrollPopup) {
const XUL_NS
= "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
gAutoScrollPopup = document.createElementNS(XUL_NS, "popup");
gAutoScrollPopup.id = "autoscroller";
gAutoScrollPopup.addEventListener("popuphidden", stopScrolling, true);
document.documentElement.appendChild(gAutoScrollPopup);
}
...
gAutoScrollPopup.showPopup(document.documentElement, event.screenX, event.screenY,
"popup", null, null);
But the actual scrolling is handled in this javascript file I think. So is there a quick way to replace that XUL object with something native, and use the existing code from these two javascript files?
Comment 7•20 years ago
|
||
(In reply to comment #6)
> But the actual scrolling is handled in this javascript file I think. So is
> there a quick way to replace that XUL object with something native, and use the
> existing code from these two javascript files?
No.
cl
Updated•20 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•