-
Enhancement
-
Resolution: Fixed
-
P3
-
7u9
-
b61
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084656 | emb-9 | Alexandr Scherbatiy | P3 | Resolved | Fixed | team |
JDK-8086847 | 8u65 | Alexandr Scherbatiy | P3 | Resolved | Fixed | b01 |
JDK-8076242 | 8u60 | Alexandr Scherbatiy | P3 | Resolved | Fixed | b10 |
JDK-8138081 | emb-8u65 | Unassigned | P3 | Resolved | Fixed | b01 |
JDK-8079004 | emb-8u60 | Alexandr Scherbatiy | P3 | Resolved | Fixed | team |
SHORT SUMMARY:
No Horizontal Mouse Wheel Support In BasicScrollPaneUI
DESCRIPTION:
May need to be broken out into two RFEs
Problem 1:
Few mouse like Apple Mighty Mouse and Trackpads support horizontal scrolling
through its wheel and with a magin mouse, horizontal wheel scrolling can be
done in Windows as well. But there appears to be no support in
MouseWheelEvent to determine horizontal or vertical scrolling. This prevents
us/scrollpane ui in providing such support
Problem 2:
Even if there is no in-built horizontal wheel scrolling through mouse, there
should be a way to do horizontal wheel scrolling (not clicking and dragging
horizontal scroll bar) in Java ScrollPane. With the following code in
BasicScrollPaneUI:
if (scrollpane.isWheelScrollingEnabled() &&
e.getWheelRotation() != 0) {
JScrollBar toScroll = scrollpane.getVerticalScrollBar();
int direction = e.getWheelRotation() < 0 ? -1 : 1;
int orientation = SwingConstants.VERTICAL;
// find which scrollbar to scroll, or return if none
if (toScroll == null || !toScroll.isVisible()) {
toScroll = scrollpane.getHorizontalScrollBar();
if (toScroll == null || !toScroll.isVisible()) {
return;
}
orientation = SwingConstants.HORIZONTAL;
}
the horizontal wheel scrolling is enabled only when vertical scrollbar is not
present. There should be a way to use some modifier like SHIFT/CTRL along
with mouse wheel scrolling to enable horizontal scrolling. For example Google
Chrome does this.
- backported by
-
JDK-8076242 No Horizontal Mouse Wheel Support In BasicScrollPaneUI
- Resolved
-
JDK-8079004 No Horizontal Mouse Wheel Support In BasicScrollPaneUI
- Resolved
-
JDK-8084656 No Horizontal Mouse Wheel Support In BasicScrollPaneUI
- Resolved
-
JDK-8086847 No Horizontal Mouse Wheel Support In BasicScrollPaneUI
- Resolved
-
JDK-8138081 No Horizontal Mouse Wheel Support In BasicScrollPaneUI
- Resolved
- duplicates
-
JDK-8052123 Horizontal scrolling not possible with touchpad with Metal and Nimbus L&F
- Closed
- relates to
-
JDK-4419271 Provide support for scrolling-mechanisms of non-mouse input-devices
- Resolved
-
JDK-8052123 Horizontal scrolling not possible with touchpad with Metal and Nimbus L&F
- Closed
-
JDK-8147994 [macosx] JScrollPane jitters up/down during trackpad scrolling on MacOS/Aqua
- Resolved
-
JDK-8068816 MouseWheelEvent detected as MouseEvent when Shift is down
- Closed
-
JDK-8041759 horizontal scroll events support
- Open