JDK-8041759 : horizontal scroll events support
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • Submitted: 2013-03-20
  • Updated: 2021-07-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Duplicate :  
Relates :  
Description
A DESCRIPTION OF THE REQUEST :
Java AWT has MouseWheelListener for vertical scrolling and MouseListener for other button events. Please add specific support for horizontal scroll events. (There are several ways this could be done, e.g. an MouseHorizScrollListener interface or adding BUTTON_LEFT_SCROLL/BUTTON_RIGHT_SCROLL identifiers in MouseEvent, or smooth scrolling support which also translates non-smooth scroll events.)

JUSTIFICATION :
Because many hardware devices support horizontal scrolling and Linux supports reporting it in a fairly standard way, yet most Java applications I have used do not support horizontal scroll events.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
On Linux, XEV reports the main mouse buttons with codes 1-3, vertical scrolling as button events with codes 4-5, and horizontal scrolling similarly with codes 6-7. Applications should have a standard way of recognising and responding to these button events and scrolling horizontally.
ACTUAL -
Horizontal scroll events are ignored or misused (e.g. netbeans opens a right-click menu on any horizontal scroll action). The events *are* reported in a usable way, but there is a call for standardisation: see http://netbeans.org/bugzilla/show_bug.cgi?id=226785#c4 .

CUSTOMER SUBMITTED WORKAROUND :
See linked netbeans report.