Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 .

like image 801
josamuel Avatar asked Sep 22 '16 12:09

josamuel


2 Answers

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

like image 192
Bastien Jansen Avatar answered Oct 18 '22 09:10

Bastien Jansen


You need to install JDK from JetBrains as it includes fix for this issue.

Link to JDK:

Unpack it somewhere, press Command ⌘ + Shift + A, paste "Switch IDE Boot JDK" and point to unpacked directory.

Link to instructions from JetBrains.

UPD: JetBrains fixed this issue in latest build. See link.

like image 10
pbespechnyi Avatar answered Oct 18 '22 09:10

pbespechnyi