JDK-8169898 : Release Note: Trackpad scrolling of text on OS X 10.12 Sierra is very fast
  • Type: Sub-task
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u112,8u121,9
  • Priority: P2
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2016-11-17
  • Updated: 2021-03-12
  • Resolved: 2016-12-12
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.
JDK 8 JDK 9
8u112Resolved 9Resolved
Description
The `MouseWheelEvent.getWheelRotation()` method returned rounded native `NSEvent deltaX/Y` events on Mac OS X. 
The latest macOS Sierra 10.12 produces very small `NSEvent deltaX/Y` values so rounding and summing them leads to the huge value returned from the `MouseWheelEvent.getWheelRotation()`. 
The JDK-8166591 fix accumulates `NSEvent deltaX/Y` and the `MouseWheelEvent.getWheelRotation()` method returns non-zero values only when the accumulated value exceeds a threshold and zero value. 
This is compliant with the `MouseWheelEvent.getWheelRotation()` specification:

<https://docs.oracle.com/javase/8/docs/api/java/awt/event/MouseWheelEvent.html#getWheelRotation-->

>Returns the number of "clicks" the mouse wheel was rotated, as an integer. A partial rotation may occur if the mouse supports a high-resolution wheel. In this case, the method returns zero until a full "click" has been accumulated. 

For the precise wheel rotation values, use the `MouseWheelEvent.getPreciseWheelRotation()` method instead.


Comments
The description in the generated Release Note (http://java.us.oracle.com/jdk/releasenotes/8u121-draft.html) does not contain any text following the line "The proposed JDK-8166591 [macos 10.12] " in the description above. Should all of the text in the Jira description field be included in the Release Note?
13-12-2016

Alexander, please update the Description with text for Release Note
17-11-2016

cwayne Clifford Wayne added a comment - 2016-10-21 23:27 The parent issue is Affects Version and Fixed Version is 8u122. Should the Release Notes Fixed Version be 8u75? I also need the description text here that will go into the Release Notes.
17-11-2016