Viewport animated setViewPosition


#1

Hi,

I was wondering if there is an easier way of animating viewport scrolling to a specified position than computing the step from the distance and starting a timer and moving in the timer (re-adjusting since the user could have changed it ?)
I’ve seen the ComponentAnimator class, and I was wondering if it’s possible to make use of this by adding a method in the viewport that animate the internal component smoothly.


#2

I guess it’d be possible, though I’ve never really noticed any need for it myself. Maybe because I always use a mac, so the scroll wheel already creates a really smooth set of changes, which has the same effect… Could be that using a smooth scrolling wheel and trying to also animate it would actually create a bit of a mess.