Author Topic: Draggable Panel  (Read 1317 times)

Artyom

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 1
    • View Profile
Draggable Panel
« on: July 10, 2013, 04:59:02 PM »
Hello NGUI Community :)

I'm trying to implement a scrolling text.
My first question is that after dragging text down and releasing, it automatically returns to the center of the frame.
I want text to return to the position that in the picture below. So, is it possible ?



And the second question is about "Disable drag if fits" option on draggable panel component. If it's on, and if text is too short, it stucks at the top/bottom of panel. I want to make it automatically centered if it fits the panel.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Draggable Panel
« Reply #1 on: July 10, 2013, 08:47:27 PM »
Centering logic you'd have to do yourself, but as for the first issue you're having? That's how it's supposed to work. It shouldn't return to the center. It should return it to the top or bottom, depending on how you release it. It always tries to fill the visible window. That's how all examples work as well. So the question is how did you get it to stop in the middle?