Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
336 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 Reply

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).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...