Closed Bug 102531 Opened 25 years ago Closed 24 years ago

Need to factor out mouse-wheel code for embedding

Categories

(Core :: XUL, defect)

PowerPC
Mac System 8.5
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.8

People

(Reporter: mikepinkerton, Assigned: mikepinkerton)

References

Details

There is a bunch of mousewheel code in nsMacWindow and nsMacEventHandler that embedding doesn't necessarily want or need. We need to factor it out somehow. An easy way around this is to just punt on OS9 and rely on carbonEvents on X to be registered at the appropriate location. That wouldn't suffice, however, for any of our embedding clients who want to run on 9: the carbon event for mousewheel is unfortunately only on osx. I'm not sure what we want to do for OS9 clients. We have the current hack of adding a phantom scrollbar to the left side of the window, but embedding apps might not appreciate that kind of intrusion into their application's turf. Maybe it's time to re-investigate doing it on the scrolling view level, though i never could get that working last time. ideas?
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.6
Target Milestone: mozilla0.9.6 → mozilla0.9.7
-> 098
Target Milestone: mozilla0.9.7 → mozilla0.9.8
i think i've decided to punt for os9 until someone demands it. i've added a 'scroll' method to nsIEventSink which can be used by carbon event handlers in an embedding app to tell us to scroll if the mouse is over gecko. this can also be useful if embedding apps want to use their own scrollbars for some reason. patch coming, probably will be part of 102529 (easier to do it all in one fell swoop).
Depends on: 102529
checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.