Jon
Jon

Reputation: 1850

What does WebView.flingScroll() do?

This link is all the documentation I can find on the flingScroll(vx,vy) method. It has no description of what the method does.

What does the method do? What are vx and vy? I was using them as coordinates, but are they velocities?

Upvotes: 4

Views: 2580

Answers (1)

paulrehkugler
paulrehkugler

Reputation: 3271

It mimics a user flinging the ui. The vx and vy are velocities in the x and y direction (i.e. how fast the user scrolled determines how quickly and how far the view will scroll).

Upvotes: 4

Related Questions