when we see that the mouseDown event was cancelled, stop tracking drags. This allows mousedown/move/up events to be processed by webpages w/out us interfering. r=joki, bug 43258.

This commit is contained in:
pinkerton%netscape.com 2000-09-13 01:45:23 +00:00
parent c74f61fb78
commit 450bbd5307
2 changed files with 10 additions and 0 deletions

View File

@ -887,6 +887,11 @@ nsEventStateManager::PostHandleEvent(nsIPresContext* aPresContext,
SetContentState(newFocus, NS_EVENT_STATE_ACTIVE);
}
else {
// if we're here, the event handler returned false, so stop
// any of our own processing of a drag. Workaround for bug 43258.
StopTrackingDragGesture();
}
}
break;
case NS_MOUSE_LEFT_BUTTON_UP:

View File

@ -887,6 +887,11 @@ nsEventStateManager::PostHandleEvent(nsIPresContext* aPresContext,
SetContentState(newFocus, NS_EVENT_STATE_ACTIVE);
}
else {
// if we're here, the event handler returned false, so stop
// any of our own processing of a drag. Workaround for bug 43258.
StopTrackingDragGesture();
}
}
break;
case NS_MOUSE_LEFT_BUTTON_UP: