Author Topic: Determine if there is nothing more to drag (ScrollView)  (Read 4394 times)

hexaust

  • Newbie
  • *
  • Thank You
  • -Given: 14
  • -Receive: 1
  • Posts: 35
    • View Profile
Determine if there is nothing more to drag (ScrollView)
« on: March 25, 2014, 04:49:14 PM »
How can I determine when the scroll view has reached the dragging bounds? For example I am still dragging but there is nothing more to drag (no spring) is there any event for that? OnDragFinish doesn't apply because I am still dragging and I wanna do something inside that situation.

I hope I am making any sense with what I am saying.  :o

Cheers!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Determine if there is nothing more to drag (ScrollView)
« Reply #1 on: March 26, 2014, 02:47:34 AM »
UIScrollView's RestrictWithinBounds function returns a 'true' or 'false' indicating whether the content was restricted or not (read: hit the boundary). UIScrollView uses this function in a few places, I would suggest starting there. There is no "event" for it, but you can add one yourself just by making use of the boolean return value.