JDK-8175060 : Two finger right click with track pad scrolls down one click
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8u121,9
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2017-02-16
  • Updated: 2017-02-27
  • Resolved: 2017-02-27
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 9
9Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
macOS Sierra 10.12.1 (16B2555)

A DESCRIPTION OF THE PROBLEM :
Fix for [8167492] has introduced a new problem where right clicking in a component that has a vertical scroll bar the panel will scroll down by one click.

One example is the projects panel in the NetBeans IDE, attempting to right click any node will scroll down by one scroll motion of a mouse wheel.

If fingers are tapped at exactly the same time the behaviour is not exhibited, however; if both fingers are tapped slightly after one another the behaviour is present.

[8167492]: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8167492

REGRESSION.  Last worked in version 8u112

ADDITIONAL REGRESSION INFORMATION: 
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b16, mixed mode)


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
In NetBeans IDE have projects window open with projects present, expand enough nodes and reduce window size so the vertical content is greater than the visible size.

Attempt to right click using a two finger tap gesture on the trackpad but with fingers being slightly out of sync hitting the trackpad surface.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Node under mouse cursor should have right click action function or if none under mouse the right click action should apply tot he projects component.
ACTUAL -
Content scrolls down by one click then the right click action is invoked.

REPRODUCIBILITY :
This bug can be reproduced often.

CUSTOMER SUBMITTED WORKAROUND :
None known.


Comments
The fix for the JDK-8173876 has been backported to the JDK 8u-dev: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/2494b1f76644
27-02-2017

The issue is not reproduced after the fix JDK-8173876 [macosx] Fast precise scrolling and DeltaAccumulator fix for macOS Sierra 10.12.2
27-02-2017

Does it affect 9 ?
16-02-2017