just gives me '-0' all the time$canvas->g_bind("<MouseWheel>", [ sub { my $wert = -($_[1]/120); $wert = '+' . $wert unless $wert =~ /^-/; print $wert . "\n"; }, Tkx::Ev('D') ]);
In reply to Re^2: Perl/Tkx Mousewheel
by chiron
in thread Perl/Tkx Mousewheel
by chiron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |