diff options
Diffstat (limited to 'sandbox/controls.tcl')
-rw-r--r-- | sandbox/controls.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sandbox/controls.tcl b/sandbox/controls.tcl index 9301d1a..d865020 100644 --- a/sandbox/controls.tcl +++ b/sandbox/controls.tcl @@ -129,7 +129,7 @@ proc showbox {} { } proc hidebox {lx ly} { - set next [.r find atpoint $lx $ly] + set next [.r find closest $lx $ly] if {[llength $next] > 1} { set next [lindex $next 0] } @@ -143,7 +143,7 @@ proc hidebox {lx ly} { bind .r "<ButtonPress-1>" "start_lasso %x %y" bind .r "<ButtonRelease-1>" fin_lasso -bind .r "<ButtonPress-2>" {puts "at point='[.r find atpoint %x %y]'"} +bind .r "<ButtonPress-2>" {puts "at point='[.r find closest %x %y]'"} bind .r "<ButtonPress-3>" "press %x %y motion" bind .r "<ButtonRelease-3>" release |