Skip Menu |

This queue is for tickets about the Tcl-pTk CPAN distribution.

Report information
The Basics
Id: 129008
Status: new
Priority: 0/
Queue: Tcl-pTk

People
Owner: Nobody in particular
Requestors: CAC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.96
Fixed in: (no value)



Subject: Support horizontal scrolling from <MouseWheel> events
Plenty of modern hardware supports horizontal scrolling, and it is also often possible to perform horizontal scrolling by holding shift while scrolling vertically. However, the scrolling support in Tk predates mice with scrollwheels, and as a result still often requires holding the middle mouse button, which is usually not possible on touchpads or other modern hardware lacking a middle mouse button. It would be useful for Tcl::pTk support horizontal scrolling from <MouseWheel> events, as long as existing programs don't already try to handle this.

It should be possible to support horizontal scrolling from <MouseWheel> events by using Tcl::pTk::Ev('s') (0 for vertical, 1 for horizontal) to invoke either yview() or xview(). A challenge similar to the previous ticket arises though, where it needs to be determined if a widget supports xview() before invoking it to prevent an error.