Author Topic: UIDraggableCamera disableDragIfFits like UIScrollView?  (Read 5502 times)

markofevil3

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
UIDraggableCamera disableDragIfFits like UIScrollView?
« on: November 02, 2014, 09:51:32 PM »
Hi! I'm using UIDraggableCamera for scroller and wanna use disableDragIfFits like UIScrollView. Can you please add this to UIDraggableCamera or any walk around please?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDraggableCamera disableDragIfFits like UIScrollView?
« Reply #1 on: November 03, 2014, 06:43:34 AM »
The camera-based approach was created a very, very long time ago. Before the shader-based clipping was added, to be precise. There is little reason to use it, but if you do use it it's up to you to do the math necessary to check for whether something should be draggable or not.