diff options
| author | Jeff Carr <[email protected]> | 2025-02-01 18:05:39 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-01 18:05:39 -0600 |
| commit | f79cf8917058b421a4f8dd4a854795720671c008 (patch) | |
| tree | cff72d250ab618f791fc87291c19232a8bc7fd1a /eventMouse.go | |
| parent | 5a2097d08053cbfc0d4c05fb7fec72d43ea7e5eb (diff) | |
part way to a generalized mouse move()
Diffstat (limited to 'eventMouse.go')
| -rw-r--r-- | eventMouse.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/eventMouse.go b/eventMouse.go index b14bd7e..63e0165 100644 --- a/eventMouse.go +++ b/eventMouse.go @@ -23,10 +23,6 @@ func msgDown(g *gocui.Gui, v *gocui.View) error { tk.dumpWidget("mouseDown()") } - // debugging output - // log.Log(GOCUI, "msgDown() X,Y", initialMouseX, initialMouseY) - - // vx, vy, _, _, err := g.ViewPosition("msg") if err == nil { xOffset = initialMouseX - vx @@ -50,12 +46,6 @@ func mouseUp(g *gocui.Gui, v *gocui.View) error { if msgMouseDown { msgMouseDown = false - if me.movingMsg { - me.movingMsg = false - return nil - } else { - g.DeleteView("msg") - } } else if globalMouseDown { globalMouseDown = false g.DeleteView("globalDown") @@ -63,8 +53,6 @@ func mouseUp(g *gocui.Gui, v *gocui.View) error { return nil } -// func isMouseInMsg - // this is where you have to figure out what // widget was underneath so you can active // the right response for the toolkit user's app |
