-
Sub-task
-
Resolution: Delivered
-
P2
-
8u112, 8u121, 9
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8171031 | 8u121 | Clifford Wayne | P2 | Closed | Delivered | |
JDK-8171030 | 8u112 | Clifford Wayne | P2 | Closed | Delivered | b32 |
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()`.
TheJDK-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.
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
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.
- backported by
-
JDK-8171030 Release Note: Trackpad scrolling of text on OS X 10.12 Sierra is very fast
-
- Closed
-
-
JDK-8171031 Release Note: Trackpad scrolling of text on OS X 10.12 Sierra is very fast
-
- Closed
-