# HG changeset patch # User Johann Hofmann # Date 1525439197 -7200 # Node ID 1aeaff1e13f80f4ca820497345b279e67667f23b # Parent a92406bef33e999ceae8845b7105b1dda5d463ce Bug 1457338 - Stop touch drag on mouseUp. r=kats MozReview-Commit-ID: 4uPibB3DR1D diff --git a/dom/events/EventStateManager.cpp b/dom/events/EventStateManager.cpp --- a/dom/events/EventStateManager.cpp +++ b/dom/events/EventStateManager.cpp @@ -644,16 +644,17 @@ EventStateManager::PreHandleEvent(nsPres break; } case eMouseUp: { switch (mouseEvent->button) { case WidgetMouseEvent::eLeftButton: if (Prefs::ClickHoldContextMenu()) { KillClickHoldTimer(); } + mInTouchDrag = false; StopTrackingDragGesture(); sNormalLMouseEventInProcess = false; // then fall through... MOZ_FALLTHROUGH; case WidgetMouseEvent::eRightButton: case WidgetMouseEvent::eMiddleButton: RefPtr esm = ESMFromContentOrThis(aOverrideClickTarget); esm->SetClickCount(mouseEvent, aStatus, aOverrideClickTarget);