diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-17 16:19:42 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-17 16:19:42 -0400 |
| commit | eca42bc152065315b2a51a6ded7f3d0f7bbac3ad (patch) | |
| tree | 0d8f0e315f8ed033cd567c2665218f01ca92b71b | |
| parent | aa530add436647c44586ecf7cea5f83a6e6519cf (diff) | |
Removed TODO about not using bad-for-tracking features of NSEvent in Areas on Mac OS X since that's not relevant to our use of tracking areas.
| -rw-r--r-- | area_darwin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/area_darwin.go b/area_darwin.go index c7fe2d9..0891700 100644 --- a/area_darwin.go +++ b/area_darwin.go @@ -93,7 +93,7 @@ func areaMouseEvent(self C.id, e C.id, click bool, up bool) { } else { which = 0 // reset for Held processing below } - // the docs do say don't use this for tracking since it returns the state now, and mouse move events work by tracking, but as far as I can tell dragging the mouse over the inactive window does n ot generate an event on Mac OS X, so :/ (TODO see what happens when the program is the current one; in my own separate tests no harm was done so eh; also no need for this if tracking doesn't touch dragging) + // the docs do say don't use this for tracking (mouseMoved:) since it returns the state now, and mouse move events work by tracking, but as far as I can tell dragging the mouse over the inactive window does not generate an event on Mac OS X, so :/ (tracking doesn't touch dragging anyway so) held := C.pressedMouseButtons() if which != 1 && (held & 1) != 0 { // button 1 me.Held = append(me.Held, 1) |
