summaryrefslogtreecommitdiff
path: root/eventMouseDrag.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-09 12:34:53 -0600
committerJeff Carr <[email protected]>2025-02-09 12:34:53 -0600
commit90a9f84f109800b820f5d15bad0b7ba146586edc (patch)
tree6e684cf463bad756e9631e514e5b46b13982b3b7 /eventMouseDrag.go
parentc5cada3dc93ba0f049b50fd7561a2c15347473ee (diff)
more code cleanups
Diffstat (limited to 'eventMouseDrag.go')
-rw-r--r--eventMouseDrag.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/eventMouseDrag.go b/eventMouseDrag.go
index c52867b..649b755 100644
--- a/eventMouseDrag.go
+++ b/eventMouseDrag.go
@@ -74,12 +74,6 @@ func mouseMove(g *gocui.Gui) {
return
}
- /*
- if me.mouse.globalMouseDown && (me.dropdown.active || me.textbox.active) {
- log.Info("can't drag while dropdown or textbox are active", w, h)
- return
- }
- */
if me.mouse.mouseUp {
return
}
@@ -92,41 +86,6 @@ func mouseMove(g *gocui.Gui) {
}
log.Info(fmt.Sprintf("gui toolkit error. nothing to drag at (%d,%d)", w, h))
return
-
- // if me.mouse.globalMouseDown {
- // log.Info("msgMouseDown == true")
- // plugin will segfault if you don't keep this inside a check for msgMouseDown
- // don't move this code out of here
- /*
- // new function that is smarter
- if tk := findWindowUnderMouse(); tk != nil {
- tk.setAsDragging()
- return
- }
- // first look for windows
- for _, tk := range findByXY(w, h) {
- if tk.node.WidgetType == widget.Window {
- tk.setAsDragging()
- return
- }
- }
-
- // now look for the STDOUT window
- for _, tk := range findByXY(w, h) {
- if tk.node.WidgetType == widget.Flag {
- tk.setAsDragging()
- return
- }
- }
- for _, tk := range findByXY(w, h) {
- if tk.node.WidgetType == widget.Stdout {
- tk.setAsDragging()
- // tk.moveNew()
- return
- }
- found = true
- }
- */
}
func (tk *guiWidget) setAsDragging() {