From a01ffafba0fac94c539eca33528af20b3e02cec5 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 10 Apr 2014 18:52:43 -0400 Subject: Fixed Area mouse events being sent when something happens outside the Area itself. --- area_darwin.go | 1 + 1 file changed, 1 insertion(+) (limited to 'area_darwin.go') diff --git a/area_darwin.go b/area_darwin.go index dcc6941..9cdda68 100644 --- a/area_darwin.go +++ b/area_darwin.go @@ -143,6 +143,7 @@ func areaMouseEvent(self C.id, e C.id, click bool, up bool) { s := getSysData(self) xp := C.getTranslatedEventPoint(self, e) me.Pos = image.Pt(int(xp.x), int(xp.y)) + // no need to check me.Pos; Cocoa won't send an event outside the Area me.Modifiers = parseModifiers(e) which := uint(C.objc_msgSend_intret_noargs(e, _buttonNumber)) + 1 if which == 3 { // swap middle and right button numbers -- cgit v1.2.3