mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fix for bug 157837 -- fix a problem with click-hold scrolling in scrollbars that caused the slightest mouse move to stop the scrolling; patch fixes a coordinate issue that made us think we'd left the widget. r=pinkerton, sr=bryner, a=asa.
This commit is contained in:
parent
9ee98f355e
commit
ca494f80d1
@ -1672,7 +1672,12 @@ PRBool nsMacEventHandler::HandleMouseMoveEvent( EventRecord& aOSEvent )
|
||||
if (lastWidgetHit)
|
||||
{
|
||||
Point macPoint = aOSEvent.where;
|
||||
::GlobalToLocal(&macPoint);
|
||||
WindowRef wind = reinterpret_cast<WindowRef>(mTopLevelWidget->GetNativeData(NS_NATIVE_DISPLAY));
|
||||
nsGraphicsUtils::SafeSetPortWindowPort(wind);
|
||||
{
|
||||
StOriginSetter originSetter(wind);
|
||||
::GlobalToLocal(&macPoint);
|
||||
}
|
||||
PRBool inWidgetHit = lastWidgetHit->PointInWidget(macPoint);
|
||||
if (sMouseInWidgetHit != inWidgetHit)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user