Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
326 views
in Technique[技术] by (71.8m points)

swing - After mac os sierra update facing scrolling issue with Java applications like Intellij

After the recent update, Mac os Sierra, to my Macbook pro, I'm facing scrolling issues with all Java applications like Intellij IDEA community edition.

The scrolling in the editor panes are extremely fast. The unit of scroll increments seem to be large.

Intellij IDEA Version is 2016.2.3. Java version is Java 8 Update 10.1.

I see the same behavior even in the "System Preference" -> "Java" -> "Advanced" tab .

question from:https://stackoverflow.com/questions/39638718/after-mac-os-sierra-update-facing-scrolling-issue-with-java-applications-like-in

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This is a known bug, likely caused by the JDK:

It looks like JDK issue and is reproducible with a simple scrollable JList. Sierra generates much more events than El Captain. These events contain values ~0.1 instead of expected ~1. But Java converts these small number to 1 anyway.

Edit: see also this OpenJDK bug: https://bugs.openjdk.java.net/browse/JDK-8166591

Edit2: as described in the other answer, JetBrains have fixed their custom JDK. You can download it here and follow these instructions to make IntelliJ use this JDK instead (select the option labeled ... to choose a custom location).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...