If ScrollPane#setFlickScroll(boolean) is true, the scroll pane must have
ScrollPane#setCancelTouchFocus(boolean) false. When a drag starts that should drag rather than flick scroll, cancel the
scroll pane's touch focus using stage.cancelTouchFocus(scrollPane);. In this case the drag scroll listener must
not be attached to the scroll pane, else it would also lose touch focus. Instead it can be attached to the scroll pane's actor.
If using drag and drop, DragAndDrop#setCancelTouchFocus(boolean) must be false.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Interpolation | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv long | |
| private ScrollPane | |
| private Timer. | |
| private Timer. | |
| pack-priv long | |
| pack-priv float | |
| pack-priv static final Vector2 |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | drag(InputEvent event, float x, float y, int pointer)
Overrides com.
|
| public void | dragStop(InputEvent event, float x, float y, int pointer)
Overrides com.
|
| pack-priv float | |
| protected boolean | |
| protected boolean | |
| protected void | |
| public void | |
| public void |
| interpolation | back to summary |
|---|---|
| pack-priv Interpolation interpolation | |
| maxSpeed | back to summary |
|---|---|
| pack-priv float maxSpeed | |
| minSpeed | back to summary |
|---|---|
| pack-priv float minSpeed | |
| padBottom | back to summary |
|---|---|
| pack-priv float padBottom | |
| padTop | back to summary |
|---|---|
| pack-priv float padTop | |
| rampTime | back to summary |
|---|---|
| pack-priv long rampTime | |
| scroll | back to summary |
|---|---|
| private ScrollPane scroll | |
| scrollDown | back to summary |
|---|---|
| private Timer. | |
| scrollUp | back to summary |
|---|---|
| private Timer. | |
| startTime | back to summary |
|---|---|
| pack-priv long startTime | |
| tickSecs | back to summary |
|---|---|
| pack-priv float tickSecs | |
| tmpCoords | back to summary |
|---|---|
| pack-priv static final Vector2 tmpCoords Hides com. | |
| DragScrollListener | back to summary |
|---|---|
| public DragScrollListener(final ScrollPane scroll) | |
| drag | back to summary |
|---|---|
| public void drag(InputEvent event, float x, float y, int pointer) Overrides com. | |
| dragStop | back to summary |
|---|---|
| public void dragStop(InputEvent event, float x, float y, int pointer) Overrides com. | |
| getScrollPixels | back to summary |
|---|---|
| pack-priv float getScrollPixels() | |
| isAbove | back to summary |
|---|---|
| protected boolean isAbove(float y) | |
| isBelow | back to summary |
|---|---|
| protected boolean isBelow(float y) | |
| scroll | back to summary |
|---|---|
| protected void scroll(float y) | |
| setPadding | back to summary |
|---|---|
| public void setPadding(float padTop, float padBottom) | |
| setup | back to summary |
|---|---|
| public void setup(float minSpeedPixels, float maxSpeedPixels, float tickSecs, float rampSecs) | |