Unconditionally reset mDragSelectingCells to false on mouse-up, so that the system doesn't remain in table selection mode when dragging outside a table. bug=210197. r+sr=mats.palmgren

This commit is contained in:
Uri Bernstein 2008-08-09 18:09:37 +03:00
parent e411aee1b0
commit e2c16e860b

View File

@ -2533,6 +2533,7 @@ nsFrameSelection::SetMouseDownState(PRBool aState)
if (!mMouseDownState)
{
mDragSelectingCells = PR_FALSE;
PostReason(nsISelectionListener::MOUSEUP_REASON);
NotifySelectionListeners(nsISelectionController::SELECTION_NORMAL); //notify that reason is mouse up please.
}