mac osx: move using 2-finger click

This commit is contained in:
Joachim Schöberl 2015-10-10 20:37:23 +02:00
parent ef6001f072
commit 7ca85f7420

View File

@ -46,7 +46,11 @@ if {[catch {togl .ndraw -width 400 -height 300 -rgba true -double true -depth t
}
bind .ndraw <B3-Motion> {
Ng_MouseMove $oldmousex $oldmousey %x %y zoom
if { $tcl_platform(os) == "Darwin" } {
Ng_MouseMove $oldmousex $oldmousey %x %y move
} {
Ng_MouseMove $oldmousex $oldmousey %x %y zoom
}
.ndraw render
set oldmousex %x; set oldmousey %y;
}