Author Topic: Bug in ScrollView with Anchors  (Read 5558 times)

BLOOD585

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Bug in ScrollView with Anchors
« 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!
« Last Edit: March 26, 2014, 05:42:25 AM by BLOOD585 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bug in ScrollView with Anchors
« Reply #1 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.

BLOOD585

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Bug in ScrollView with Anchors
« Reply #2 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bug in ScrollView with Anchors
« Reply #3 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.

BLOOD585

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Bug in ScrollView with Anchors
« Reply #4 on: March 31, 2014, 03:02:39 AM »
День добрый!

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

Например, я скролю ScrollView до конца вправо, а затем кликаю на последний элемент, ScrollView перематывает в неверную позицию.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bug in ScrollView with Anchors
« Reply #5 on: March 31, 2014, 06:43:56 AM »
Это с какой версии?

BLOOD585

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Bug in ScrollView with Anchors
« Reply #6 on: March 31, 2014, 06:45:58 AM »
Версия 3.5.4 r2

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bug in ScrollView with Anchors
« Reply #7 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.

BLOOD585

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Bug in ScrollView with Anchors
« Reply #8 on: March 31, 2014, 07:14:43 AM »
Thanks! All works fine)))