Author Topic: UIScrollView movement issue  (Read 3512 times)

kk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
UIScrollView movement issue
« on: May 24, 2015, 08:41:30 PM »
I'm having an issue with the UIScrollView where, instead of the contents of the Scroll View moving around within a stationary panel, the panel itself moves around a clipped group of stationary child elements, like a spotlight moving around a stage.

I looked at the example scene for the UIScrollView, and it *looks* identical in terms of settings, yet clearly I'm missing something.

Hoping the issue has an obvious cause to people more experienced with NGUI.

Thanks much!
« Last Edit: May 30, 2015, 03:37:42 PM by kk »

hay7728

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: UIScrollView movement issue
« Reply #1 on: May 30, 2015, 07:37:37 PM »
Hello,
I’m having this problem too.  It only just started happening a day ago.  I really need help, because it has thoroughly broken my game.
Thx.

kk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: UIScrollView movement issue
« Reply #2 on: June 01, 2015, 05:15:21 PM »
Hay7728, do you mean it *was* working for you and then stopped?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollView movement issue
« Reply #3 on: June 01, 2015, 09:26:09 PM »
Check your anchoring -- in particular on the scroll view itself. Scroll view's contents move by adjusting an offset value on the scroll view's panel, and at the same time adjusting the transform position of the scroll view's panel by the opposite value. If you happened to anchor the scroll view where the position can't be moved or otherwise reset its position, then you can end up with a scroll view that can't scroll.