well, this needs more thought
This commit is contained in:
parent
ac9c6617e3
commit
4a8fb6ab22
|
@ -45,6 +45,7 @@ func mouseUp(g *gocui.Gui, v *gocui.View) error {
|
||||||
// the right response for the toolkit user's app
|
// the right response for the toolkit user's app
|
||||||
func mouseDown(g *gocui.Gui, v *gocui.View) error {
|
func mouseDown(g *gocui.Gui, v *gocui.View) error {
|
||||||
mx, my := g.MousePosition()
|
mx, my := g.MousePosition()
|
||||||
|
log.Info("mouseDown() setting globalMouseDown = true")
|
||||||
me.globalMouseDown = true
|
me.globalMouseDown = true
|
||||||
|
|
||||||
var found bool = false
|
var found bool = false
|
||||||
|
@ -69,7 +70,7 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error {
|
||||||
log.Info("IGNORE LABLE")
|
log.Info("IGNORE LABLE")
|
||||||
found = false
|
found = false
|
||||||
log.Info("setting mousedown to true")
|
log.Info("setting mousedown to true")
|
||||||
msgMouseDown = true
|
// msgMouseDown = true
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
@ -137,6 +138,6 @@ func msgDown(g *gocui.Gui, v *gocui.View) error {
|
||||||
yOffset = initialMouseY - vy
|
yOffset = initialMouseY - vy
|
||||||
}
|
}
|
||||||
log.Info("setting mousedown to true")
|
log.Info("setting mousedown to true")
|
||||||
msgMouseDown = true
|
// msgMouseDown = true
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ type config struct {
|
||||||
// deprecate these
|
// deprecate these
|
||||||
var (
|
var (
|
||||||
initialMouseX, initialMouseY, xOffset, yOffset int
|
initialMouseX, initialMouseY, xOffset, yOffset int
|
||||||
msgMouseDown bool
|
// msgMouseDown bool
|
||||||
)
|
)
|
||||||
|
|
||||||
// this is the gocui way
|
// this is the gocui way
|
||||||
|
|
Loading…
Reference in New Issue