startScroll

open fun startScroll(startX: Int, startY: Int, dx: Int, dy: Int)(source)

Deprecated

Use getCurrX directly.

Start scrolling by providing a starting point and the distance to travel. The scroll will use the default value of 250 milliseconds for the duration.

Parameters

startX

Starting horizontal scroll offset in pixels. Positive numbers will scroll the content to the left.

startY

Starting vertical scroll offset in pixels. Positive numbers will scroll the content up.

dx

Horizontal distance to travel. Positive numbers will scroll the content to the left.

dy

Vertical distance to travel. Positive numbers will scroll the content up.


open fun startScroll(startX: Int, startY: Int, dx: Int, dy: Int, duration: Int)(source)

Deprecated

Use startScroll directly.

Start scrolling by providing a starting point and the distance to travel.

Parameters

startX

Starting horizontal scroll offset in pixels. Positive numbers will scroll the content to the left.

startY

Starting vertical scroll offset in pixels. Positive numbers will scroll the content up.

dx

Horizontal distance to travel. Positive numbers will scroll the content to the left.

dy

Vertical distance to travel. Positive numbers will scroll the content up.

duration

Duration of the scroll in milliseconds.