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
Родитель beb9eae6de
Коммит 6333de29c5
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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:

Просмотреть файл

@ -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: