Author Topic: Scroll View for Mobile Devices  (Read 2025 times)

ptychan

  • Guest
Scroll View for Mobile Devices
« on: August 22, 2012, 01:28:25 PM »
Which method is more optimal for mobile devices?

- Scroll View (clipped panel)
- Scroll View (secondary camera)

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll View for Mobile Devices
« Reply #1 on: August 22, 2012, 03:10:20 PM »
Secondary camera is faster, but you can do more with a clipped panel.

ptychan

  • Guest
Re: Scroll View for Mobile Devices
« Reply #2 on: August 22, 2012, 04:49:22 PM »
Thanks for the quick reply!

One more question, I have buttons in my scroll view that listen for OnRelease(). How can I add a threshold for this event so it works similar to the Drag/Click thresholds?

In other words, if I drag the scroll view beyond a certain value, I don't want OnRelease() to trigger.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll View for Mobile Devices
« Reply #3 on: August 22, 2012, 07:17:04 PM »
You mean OnPress(false)? There is no OnRelease. This isn't built-in, so you'll have to add your own logic.

ptychan

  • Guest
Re: Scroll View for Mobile Devices
« Reply #4 on: August 23, 2012, 12:57:31 PM »
Yup. In UIButtonMessage, the OnRelease Trigger is essentially OnPress(false). Seems like I will have to add the threshold myself in UICamera. Thanks!