diff options
Diffstat (limited to 'area_windows.go')
| -rw-r--r-- | area_windows.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/area_windows.go b/area_windows.go index a0b855d..d9497bf 100644 --- a/area_windows.go +++ b/area_windows.go @@ -358,6 +358,9 @@ func areaMouseEvent(s *sysData, button uint, up bool, count uint, wparam _WPARAM xpos += lparam._X() ypos += lparam._Y() me.Pos = image.Pt(int(xpos), int(ypos)) + if !me.Pos.In(image.Rect(0, 0, s.areawidth, s.areaheight)) { // outside the actual Area; no event + return + } if up { me.Up = button } else { |
