Mac magic mouse horizontal scroll will vertically scroll in code editor

已回答

Using Intellij 15.0.3 on Mac OS 10.11.2.

When I have a code tab open and it's long enough to need a vertical scroll bar, but not wide enough to need a horizontal scroll bar, the editor will scroll up and down if I run my finger across my magic mouse side to side.

In my opinion, this is unintended behavior. In other apps, such as Sublime Text 3 in the same scenario, swiping my finger side to side on my magic mouse will do nothing. The document will still scroll up and down as intended when swiping my finger up and down on the mouse.

Is there a way to disable the vertical scrolling fallback if the document isn't wide enough to scroll side to side?

 

0
正式评论

Thanks for the details. I've reported a bug at https://youtrack.jetbrains.com/issue/IDEA-150891. Please follow it for updates. See https://intellij-support.jetbrains.com/hc/articles/207241135 if you are not familiar with YouTrack.

Booting IDEA using an up to date jdk like Netbeans is using doesn't work. But using apple java 1.6 did. It's not ideal though since it's old and not really supported anymore. It mentioned it wouldn't do updates over ssl with that jdk.

Would there be any other solutions?

1

Ever since I upgraded to IDEA 15, its scrolling reminds me of that in Microsoft products. Much too sensitive and twitchy. I tried to follow the instruction for switching to a different JDK and even though I have multiple on my Mac, there is only one option given in the Boot JDK selection dialog. … Correction, having just checked again, now there are none!

The file ~/..../idea.jdk contains this: "/Applications/IntelliJ IDEA 15.0.3.app/Contents/jre/jdk". I replaced that with "/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk" and now I have good scrolling behavior.

Sees like OpenJDK is not yet up-to-snuff, at least on the Mac for interactive applications.

1

When I disable horizontal scrolling with `defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseHorizontalScroll -bool NO` it still seems to occur.  It's awful.

1

Not at all related. That topic discusses horizontal scrolling not working when it should. 

My issue is where the content will scroll vertically when moving a finger horizontally on the mouse.

0

According to http://bugs.java.com/view_bug.do?bug_id=6440198, mouse wheel horizontal scroll is not supported in Java.

0

That's confusing. Horizontal scrolling works pretty well on the magic mouse. The problem is that it's working too often, in a scenario where it should not.

0

Does it work for you in other Java Swing apps like JEdit and NetBeans that run on Java 8?

0

I installed Netbeans 8.1 and opened the same file in both IDEs. The problem that Intellij has does not occur in Netbeans. 

0

I really doubt it has anything to do with the version of Java that intellij is using.

0

Java version does matter. Try running IDEA using Apple Java 1.6 (https://intellij-support.jetbrains.com/hc/articles/206544879). Most likely, there will be no horizontal scrolling. Also try running IDEA on the same Java version as NetBeans is using instead of the bundled Java. Thank you.

0

请先登录再写评论。