---
title: enabledDuringMouseDrag
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nstrackingarea/options-swift.struct/enabledduringmousedrag
---

# enabledDuringMouseDrag

The owner receives NSMouseEntered events when the mouse cursor is dragged into the tracking area. If this option is not specified, the owner receives mouse-entered events when the mouse is moved (no buttons pressed) into the tracking area and on NSLeftMouseUp events after a mouse drag.

## Declaration

```swift
static var enabledDuringMouseDrag: NSTrackingArea.Options { get }
```

## Discussion

Discussion NSMouseExited and NSMouseEntered events are paired so their delivery is indirectly affected. That is, if a NSMouseEntered event is generated and the mouse cursor subsequently moves out of the tracking area, a NSMouseExited event is generated regardless if the mouse is moved or dragged, independent of this constant. This value specifies a behavior of the tracking area defined by the NSTrackingArea.

## See Also

### Constants

- [mouseEnteredAndExited](appkit/nstrackingarea/options-swift.struct/mouseenteredandexited.md)
- [mouseMoved](appkit/nstrackingarea/options-swift.struct/mousemoved.md)
- [cursorUpdate](appkit/nstrackingarea/options-swift.struct/cursorupdate.md)
- [activeWhenFirstResponder](appkit/nstrackingarea/options-swift.struct/activewhenfirstresponder.md)
- [activeInKeyWindow](appkit/nstrackingarea/options-swift.struct/activeinkeywindow.md)
- [activeInActiveApp](appkit/nstrackingarea/options-swift.struct/activeinactiveapp.md)
- [activeAlways](appkit/nstrackingarea/options-swift.struct/activealways.md)
- [assumeInside](appkit/nstrackingarea/options-swift.struct/assumeinside.md)
- [inVisibleRect](appkit/nstrackingarea/options-swift.struct/invisiblerect.md)
