Author Topic: Manually set scrollview restrict area?  (Read 5041 times)

DarkMagicCK

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 20
    • View Profile
Manually set scrollview restrict area?
« on: April 02, 2014, 02:22:49 AM »
ScrollView can detect its range, that's good. But sometimes we need a constant draggable area.

eg. Sometimes we do not want the scrollview to count some decorate sprites as its drag range, which is tweening scale or position at the side of the scroll view's panel. When player drag this view to the edge, restrict with panel will restrict to different position.This causes strange user experience.

Is there any way to change restrict way, like not restrict within panel, but a constant rectangle, or something like this?

DarkMagicCK

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: Manually set scrollview restrict area?
« Reply #1 on: April 04, 2014, 12:48:40 AM »
any ideas?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Manually set scrollview restrict area?
« Reply #2 on: April 04, 2014, 09:13:17 PM »
You can make the region of content bigger by adding some invisible widgets (ALT+SHIFT+W, resize to mark the area of the content).

You can't make it smaller than the sum of the widget bounds.