Blob Blame History Raw
--- mozilla/dom/events/EventStateManager.cpp.orig	2023-02-25 21:34:57.000000000 +0300
+++ mozilla/dom/events/EventStateManager.cpp	2023-02-27 06:12:51.493057539 +0300
@@ -645,16 +645,19 @@ EventStateManager::PreHandleEvent(nsPres
   case eMouseUp: {
     switch (mouseEvent->button) {
       case WidgetMouseEvent::eLeftButton:
         if (Prefs::ClickHoldContextMenu()) {
           KillClickHoldTimer();
         }
         mInTouchDrag = false;
         StopTrackingDragGesture();
+        if (sActiveESM && sActiveESM != this) {
+          sActiveESM->StopTrackingDragGesture();
+        }
         sNormalLMouseEventInProcess = false;
         // then fall through...
         MOZ_FALLTHROUGH;
       case WidgetMouseEvent::eRightButton:
       case WidgetMouseEvent::eMiddleButton:
         SetClickCount(mouseEvent, aStatus);
         NotifyTargetUserActivation(aEvent, aTargetContent);
         break;