summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-01 02:58:49 -0700
committerJeff Carr <[email protected]>2019-06-01 02:58:49 -0700
commit3673e688ecb8099e61a7f5e61e66fe7ba9429f89 (patch)
treefd317e6079ffddc054371171d27f6159568ec3a3 /area.go
parent97a4307514eb243027d81271de67f26537ab8ec6 (diff)
more cleaning
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'area.go')
-rw-r--r--area.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/area.go b/area.go
index 3582900..42ea850 100644
--- a/area.go
+++ b/area.go
@@ -75,7 +75,9 @@ func (ah GuiArea) MouseEvent(a *ui.Area, me *ui.AreaMouseEvent) {
log.Println("GOT MOUSE UP")
log.Println("GOT MOUSE UP ah.Button =", ah.Button)
log.Println("GOT MOUSE UP ah.Button.FB =", ah.Button.FB)
- mouseClick(ah.Button)
+ if (Data.MouseClick != nil) {
+ Data.MouseClick(ah.Button)
+ }
}
}