uis icon indicating copy to clipboard operation
uis copied to clipboard

How to autoscroll to target?

Open theolovesyou opened this issue 4 years ago • 1 comments

I use MoveToSide method to scroll to end position and if target is found i stopped scrolling. but items spawned after scrolling. i changed the SCROLL_SPEED, SCROLL_DURATION but it did not work.

i mean OnFill is called at first few times, and is not called even if scroll is moving.

is there a good way to autoscroll to target? thanks!

theolovesyou avatar Oct 09 '20 09:10 theolovesyou

I've tried the following:

public void MoveTo(float position)
{
	_scroll.verticalNormalizedPosition = position/ _count;
}

being position the target index in the list, but it won't work, it scrolls correctly, but the list looks empty, you had to manually scroll (doesn't matter the direction) to update the items inside the list, any idea?

EricBatlle avatar Sep 13 '22 20:09 EricBatlle