summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-17 16:21:25 -0400
committerPietro Gagliardi <[email protected]>2014-05-17 16:21:25 -0400
commit352c60bf688dfaa8efd9c105d49a0dccd0c496cc (patch)
tree942eb7ce63f775c8d41d72d3c2b75cb9b0a3a5e9
parenteca42bc152065315b2a51a6ded7f3d0f7bbac3ad (diff)
More clarification on the previous commit.
-rw-r--r--area_darwin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/area_darwin.go b/area_darwin.go
index 0891700..e5508da 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 (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)
+ // 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 except during mouseEntered: and mouseExited:, which we don't handle, and the only other tracking message, cursorChanged:, we also don't handle (yet...? need to figure out if this is how to set custom cursors or not), so)
held := C.pressedMouseButtons()
if which != 1 && (held & 1) != 0 { // button 1
me.Held = append(me.Held, 1)