Here are two separate commits for supporting scrolling on macOS aqua (cf. #24). These were tested with Tcl::pTk, so I'm assuming they'll be applicable to Perl/Tk.
Mouse buttons 4 and 5 being used for scrolling is specific to X11, i.e. not all Unix windowingsystems do this (e.g. aqua does not). So instead of assuming X11 by checking $Tk::Platform, check windowingsystem eq 'x11' instead. This prevents the issue of someone's many-buttoned mouse from causing scroll events on aqua. This also matches the usage in https://core.tcl.tk/tips/doc/trunk/tip/171.md
I am considering revising this to support horizontal scrolling as well, so for now I will close this and put any non-aqua changes I think are ready in another PR.
Here are two separate commits for supporting scrolling on macOS aqua (cf. #24). These were tested with Tcl::pTk, so I'm assuming they'll be applicable to Perl/Tk.
windowingsystem
s do this (e.g. aqua does not). So instead of assuming X11 by checking$Tk::Platform
, checkwindowingsystem eq 'x11'
instead. This prevents the issue of someone's many-buttoned mouse from causing scroll events on aqua. This also matches the usage in https://core.tcl.tk/tips/doc/trunk/tip/171.md