Browse Source

NSViewComponentPeer: Ignore peer-level mouse enter/exit events when mouse button is pressed

v7.0.9
reuk 2 years ago
parent
commit
a7563b5e91
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_gui_basics/native/juce_NSViewComponentPeer_mac.mm

+ 2
- 2
modules/juce_gui_basics/native/juce_NSViewComponentPeer_mac.mm View File

@@ -51,7 +51,6 @@ static void resetTrackingArea (NSView* view)
const auto options = NSTrackingMouseEnteredAndExited
| NSTrackingMouseMoved
| NSTrackingEnabledDuringMouseDrag
| NSTrackingActiveAlways
| NSTrackingInVisibleRect;
@@ -1777,7 +1776,8 @@ private:
if (! [[view trackingAreas] containsObject: area])
return;
sendMouseEvent (ev);
if ([NSEvent pressedMouseButtons] == 0)
sendMouseEvent (ev);
}
static void setOwner (id viewOrWindow, NSViewComponentPeer* newOwner)


Loading…
Cancel
Save