Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: BLOOD585 on March 26, 2014, 05:34:39 AM

Title: Bug in ScrollView with Anchors
Post by: BLOOD585 on March 26, 2014, 05:34:39 AM
Hi!

I want to make a horizontal scroll with centering element, and that the size of the scroll changed together with the screen. But I found a bug which is reproduced in your example "Scroll View (Panel)". If in the example add Anchors to UIPanel ScrollView, go to the last item and clicking on it for a long time, sometimes scrolling moves to a random position.

Attached video https://cloud.mail.ru/public/68ee5c21fc2d/ScrollViewBug.avi

First reproduction 1min 17sec. Sorry for bad English))))

If I remove Anchors, all works fine!
Title: Re: Bug in ScrollView with Anchors
Post by: ArenMook on March 26, 2014, 07:33:36 PM
Not sure what that AVI is encoded with but I can't play it on my computer. May I recommend YouTube?

Also, I speak Russian.
Title: Re: Bug in ScrollView with Anchors
Post by: BLOOD585 on March 27, 2014, 01:18:47 AM
Hi!

Upload on YouTube: https://www.youtube.com/watch?v=iTB1SQgFQDo

The larger anchor bias center and  change offset, the more often bug reproduced and stronger consequences.
Title: Re: Bug in ScrollView with Anchors
Post by: ArenMook on March 27, 2014, 10:27:41 PM
So where's the issue? I don't see anything wrong with the video. And what you're saying doesn't make sense. If russian is your native language then just post in russian.
Title: Re: Bug in ScrollView with Anchors
Post by: BLOOD585 on March 31, 2014, 03:02:39 AM
День добрый!

Баг заключается в том, что если на ScrollView стоят Anchors, то CenterOnChild работает не корректно. Как только я убираю их, проблема исчезает. Включенный UIGrid еще сильнее усугубляет ситуацию. Возможно это смещение center или offset так влияет.

Например, я скролю ScrollView до конца вправо, а затем кликаю на последний элемент, ScrollView перематывает в неверную позицию.
Title: Re: Bug in ScrollView with Anchors
Post by: ArenMook on March 31, 2014, 06:43:56 AM
Это с какой версии?
Title: Re: Bug in ScrollView with Anchors
Post by: BLOOD585 on March 31, 2014, 06:45:58 AM
Версия 3.5.4 r2
Title: Re: Bug in ScrollView with Anchors
Post by: ArenMook on March 31, 2014, 06:56:58 AM
Yeah you should update to the latest. Preferably to 3.5.6 if you have Pro access.
Title: Re: Bug in ScrollView with Anchors
Post by: BLOOD585 on March 31, 2014, 07:14:43 AM
Thanks! All works fine)))