Bug 251351 fix. Adding cursor coordinates to scroll-wheel event in BeOS. r=thesuckiestemail@yahoo.se BeOS-porty only change.
This commit is contained in:
@@ -1799,6 +1799,15 @@ bool nsWindow::CallMethod(MethodInfo *info)
|
||||
|
||||
case nsWindow::ONWHEEL :
|
||||
{
|
||||
BPoint cursor(0,0);
|
||||
uint32 buttons;
|
||||
if(mView && mView->LockLooper())
|
||||
{
|
||||
mView->GetMouse(&cursor, &buttons, false);
|
||||
mView->UnlockLooper();
|
||||
}
|
||||
else
|
||||
return false;
|
||||
NS_ASSERTION(info->nArgs == 1, "Wrong number of arguments to CallMethod");
|
||||
|
||||
nsMouseScrollEvent scrollEvent(NS_MOUSE_SCROLL, this);
|
||||
@@ -1809,9 +1818,8 @@ bool nsWindow::CallMethod(MethodInfo *info)
|
||||
|
||||
scrollEvent.time = PR_IntervalNow();
|
||||
|
||||
// XXX implement these items?
|
||||
scrollEvent.point.x = 100;
|
||||
scrollEvent.point.y = 100;
|
||||
scrollEvent.point.x = cursor.x;
|
||||
scrollEvent.point.y = cursor.y;
|
||||
|
||||
// we don't use the mIsXDown bools because
|
||||
// they get reset on Gecko reload (makes it harder
|
||||
|
||||
Reference in New Issue
Block a user