A ScrollPane that scrolls in response to mouse drags on its viewport, in
addition to the standard interactions with its scrollbars. The captured
mouse drag events act on the scrollbars directly, so mouse-pan and
scrollbar-pan should stay in sync.
---
Note: This is the most robust implementation so far, in that children with
tooltips enabled won't interfere with the mouse drag. It's built using an
AWTEventListener, which gets ALL mouse events produced by the app,
regardless of whether another listener somewhere is getting the events
first (e.g. a tooltip enabled child). One small quirk of this approach is
that you can initiate a pan by dragging from the blank corner formed by the
horizontal and vertical scrollbars.
Created by gonztobi on 3/11/14.
Linear Supertypes
ScrollPane, Container, Component, UIElement, LazyPublisher, Publisher, Reactor, Proxy, AnyRef, Any
A ScrollPane that scrolls in response to mouse drags on its viewport, in addition to the standard interactions with its scrollbars. The captured mouse drag events act on the scrollbars directly, so mouse-pan and scrollbar-pan should stay in sync.
---
Note: This is the most robust implementation so far, in that children with tooltips enabled won't interfere with the mouse drag. It's built using an AWTEventListener, which gets ALL mouse events produced by the app, regardless of whether another listener somewhere is getting the events first (e.g. a tooltip enabled child). One small quirk of this approach is that you can initiate a pan by dragging from the blank corner formed by the horizontal and vertical scrollbars.
Created by gonztobi on 3/11/14.