Closed Bug 112448 Opened 23 years ago Closed 23 years ago

Mousewhell doesn't work if window not on main monitor

Categories

(Core :: XUL, defect)

PowerPC
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla0.9.7

People

(Reporter: mikepinkerton, Assigned: mikepinkerton)

Details

- open a window on the 2nd monitor with a url that scrolls - use mousewheel expected: - page scrolls actual: - nothing happens something regressed, this worked a week or two ago. what changed?! this works fine if the window is on the main monitor.
taking. i have a patch
Assignee: bryner → pinkerton
Target Milestone: --- → mozilla0.9.7
patch Index: nsMacWindow.cpp =================================================================== RCS file: /cvsroot/mozilla/widget/src/mac/nsMacWindow.cpp,v retrieving revision 1.105 diff -u -2 -r1.105 nsMacWindow.cpp --- nsMacWindow.cpp 2001/10/27 07:38:03 1.105 +++ nsMacWindow.cpp 2001/11/28 20:47:21 @@ -679,6 +679,10 @@ if ( err1 == noErr && err2 == noErr && err3 == noErr ) { nsMacWindow* self = NS_REINTERPRET_CAST(nsMacWindow*, userData); - if ( self ) + if ( self ) { + // convert mouse to local coordinates since that's how gecko wants them + StPortSetter portSetter(self->mWindowPtr); + ::GlobalToLocal(&mouseLoc); self->mMacEventHandler->Scroll ( axis, delta, mouseLoc ); + } } return noErr;
Status: NEW → ASSIGNED
needing r/sr. cc'ing bryner.
sr=sfraser
fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.