in reply to Re^2: perl Tk::Scrolled : how do I hijack existing subwidget bindings?
in thread perl Tk::Scrolled : how do I hijack existing subwidget bindings?
$text->focus MainLoop;
The mouse scroll wheel can be made to work with:
I got that from googling the archives of comp.lang.perl.tk for "mouse scroll". But I don't have a scroll mouse, nor Windows to say if it works there.$text->bind('<MouseWheel>' => [ sub { $_[0]->yview('scroll', -($_[1] / 120) * 3, 'units') }, Ev('D') ]);
|
|---|