summaryrefslogtreecommitdiff
path: root/eventMouseMove.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-01 18:05:39 -0600
committerJeff Carr <[email protected]>2025-02-01 18:05:39 -0600
commitf79cf8917058b421a4f8dd4a854795720671c008 (patch)
treecff72d250ab618f791fc87291c19232a8bc7fd1a /eventMouseMove.go
parent5a2097d08053cbfc0d4c05fb7fec72d43ea7e5eb (diff)
part way to a generalized mouse move()
Diffstat (limited to 'eventMouseMove.go')
-rw-r--r--eventMouseMove.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/eventMouseMove.go b/eventMouseMove.go
index d67c3c3..a88f64c 100644
--- a/eventMouseMove.go
+++ b/eventMouseMove.go
@@ -59,29 +59,11 @@ func mouseMove(g *gocui.Gui) {
// this is how the window gets dragged around
func (tk *guiWidget) moveNew(g *gocui.Gui) {
mx, my := g.MousePosition()
- if !me.movingMsg && (mx != initialMouseX || my != initialMouseY) {
- me.movingMsg = true
- }
- // tk.DrawAt(mx-xOffset, my-yOffset)
- g.SetView("msg", mx-xOffset, my-yOffset, mx-xOffset+outputW, my-yOffset+outputH+me.FramePadH, 0)
- me.startOutputW = mx - xOffset
- me.startOutputH = my - yOffset
- g.SetViewOnBottom("msg")
-}
-
-/*
-// this is how the window gets dragged around
-func moveMsg(g *gocui.Gui) {
- mx, my := g.MousePosition()
- if !me.movingMsg && (mx != initialMouseX || my != initialMouseY) {
- me.movingMsg = true
- }
g.SetView("msg", mx-xOffset, my-yOffset, mx-xOffset+outputW, my-yOffset+outputH+me.FramePadH, 0)
me.startOutputW = mx - xOffset
me.startOutputH = my - yOffset
g.SetViewOnBottom("msg")
}
-*/
func createStdout(g *gocui.Gui) bool {
if widgetView, _ := g.View("msg"); widgetView == nil {