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
|
||||
func mouseDown(g *gocui.Gui, v *gocui.View) error {
|
||||
mx, my := g.MousePosition()
|
||||
log.Info("mouseDown() setting globalMouseDown = true")
|
||||
me.globalMouseDown = true
|
||||
|
||||
var found bool = false
|
||||
|
@ -69,7 +70,7 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error {
|
|||
log.Info("IGNORE LABLE")
|
||||
found = false
|
||||
log.Info("setting mousedown to true")
|
||||
msgMouseDown = true
|
||||
// msgMouseDown = true
|
||||
return nil
|
||||
}
|
||||
/*
|
||||
|
@ -137,6 +138,6 @@ func msgDown(g *gocui.Gui, v *gocui.View) error {
|
|||
yOffset = initialMouseY - vy
|
||||
}
|
||||
log.Info("setting mousedown to true")
|
||||
msgMouseDown = true
|
||||
// msgMouseDown = true
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ type config struct {
|
|||
// deprecate these
|
||||
var (
|
||||
initialMouseX, initialMouseY, xOffset, yOffset int
|
||||
msgMouseDown bool
|
||||
// msgMouseDown bool
|
||||
)
|
||||
|
||||
// this is the gocui way
|
||||
|
|
Loading…
Reference in New Issue