This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 231436

Summary: No horizontal scrolling in "Dark Metal" and "Dark Nimbus"
Product: platform Reporter: twolf2919 <twolf2919>
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description twolf2919 2013-06-18 11:52:02 UTC
I recently switched NB to "Dark Metal" (FINALLY the whole IDE can be made light-on-dark - yeah!).  But I noticed that my mouse's horizontal scroll no longer had any effect on NB windows.  Same thing for "Dark Nimbus". It continues to work fine in "Mac OS X" L&F.
Comment 1 Stanislav Aubrecht 2013-06-18 13:46:22 UTC
That's a JDK 'feature', horizontal mouse scrolling doesn't work in plain Metal l&f either.

Feel free to vote for http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4419271
Comment 2 twolf2919 2013-06-18 14:13:17 UTC
Stanislav,
I'm re-opening only because I don't see how the JDK bug you refer to applies here.  This 12-year old JDK bug talks about supporting scrolling on non-mouse devices!   I don't even know why this bug is still open - I've been using the touch pad in LInux and Mac to do scrolling for 5+ years (although I don't recall if that was under Metal?)

Is there a JDK bug that specifically points to Metal?  Because, as I mentioned, the problem doesn't exist under the "Mac OS X" L&F (which is also part of the JDK).

Finally, I just noticed something strange: horizontal scrolling WORKS.....if there is no vertical scroll bar!

You can close this bug again - just hoping that you can point to a more relevant JDK bug.
Comment 3 Stanislav Aubrecht 2013-06-19 09:18:20 UTC
Traditional input device, i.e. mouse, has a scroll wheel so it supports vertical scrolling only. The MouseWheelEvent class reflects that.

Multi-touch touchpads and similar input devices do support horizontal scroll gestures but there is no support for it in JDK, see the JDK bug.

I guess the reason it works in Aqua l&f is because that l&f implementation 'knows' about Apple toolkit behind the scene so it can act more native.
Comment 4 twolf2919 2013-06-19 14:16:24 UTC
So please explain the behavior I described wherein horizontal scrolling does work in Metal - when there is no vertical scroll bar?
Comment 5 Stanislav Aubrecht 2013-06-20 08:16:37 UTC
(In reply to comment #4)
> So please explain the behavior I described wherein horizontal scrolling does
> work in Metal - when there is no vertical scroll bar?

No idea