Mac magic mouse horizontal scroll will vertically scroll in code editor

Answered

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?

 

12 comments
Comment actions Permalink
Official comment

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.

Comment actions Permalink

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
Comment actions Permalink

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

0
Comment actions Permalink

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
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

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
Comment actions Permalink

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?

0
Comment actions Permalink

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.

0
Comment actions Permalink

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

0

Please sign in to leave a comment.