简体   繁体   English

在mac os sierra更新面临与Intellij等Java应用程序的滚动问题

[英]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. 最近的更新,Mac os Sierra,对于我的Macbook专业版,我正面临着所有Java应用程序(如Intellij IDEA社区版)的滚动问题。

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. Intellij IDEA版本是2016.2.3。 Java version is Java 8 Update 10.1. Java版本是Java 8 Update 10.1。

I see the same behavior even in the "System Preference" -> "Java" -> "Advanced" tab . 即使在“系统首选项” - >“Java” - >“高级”选项卡中,我也会看到相同的行为。

This is a known bug , likely caused by the JDK : 这是一个已知的错误 ,可能是由JDK引起

It looks like JDK issue and is reproducible with a simple scrollable JList. 它看起来像JDK问题,并且可以使用简单的可滚动JList重现。 Sierra generates much more events than El Captain. Sierra比El Captain产生了更多的事件。 These events contain values ~0.1 instead of expected ~1. 这些事件包含值~0.1而不是预期值~1。 But Java converts these small number to 1 anyway. 但无论如何,Java将这些小数字转换为1。

Edit: see also this OpenJDK bug: https://bugs.openjdk.java.net/browse/JDK-8166591 编辑:另请参阅此OpenJDK错误: https//bugs.openjdk.java.net/browse/JDK-8166591

Edit2: as described in the other answer, JetBrains have fixed their custom JDK. Edit2:如其他答案中所述,JetBrains修复了他们的自定义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). 您可以在此处下载并按照这些说明使IntelliJ使用此JDK(选择标记为...的选项以选择自定义位置)。

You need to install JDK from JetBrains as it includes fix for this issue. 您需要从JetBrains安装JDK,因为它包含此问题的修复程序。

Link to JDK : 链接到JDK

Unpack it somewhere, press Command ⌘ + Shift + A , paste " Switch IDE Boot JDK " and point to unpacked directory. 将其解压缩到某处,按Command⌘ + Shift + A ,粘贴“ Switch IDE Boot JDK ”并指向解压缩的目录。

Link to instructions from JetBrains. 链接JetBrains的说明

UPD: JetBrains fixed this issue in latest build. UPD: JetBrains在最新版本中解决了这个问题。 See link . 链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM