Author Topic: UIScrollView + UIButton issue  (Read 6382 times)

ababab5

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 34
    • View Profile
UIScrollView + UIButton issue
« on: December 03, 2014, 03:11:45 PM »
Hi,

I create a UIScrollView and it works fine.

But when I put a button inside, i can't scroll the view if I am on the button.

How can I filter the input between drag and tap / click ?

Please see this video to understand my issue, my english is not perfect, sorry ...

https://www.dropbox.com/s/yygwirwf4c7reyn/Enregistrement%20de%20l%E2%80%99%C3%A9cran.mov?dl=0

Thank you very much for your help.

Best regards,

Anthony B

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollView + UIButton issue
« Reply #1 on: December 04, 2014, 03:51:15 AM »
You need to attach UIDragScrollView to the button as well.

All colliders inside your scroll view need to have UIDragScrollView.

ababab5

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 34
    • View Profile
Re: UIScrollView + UIButton issue
« Reply #2 on: December 04, 2014, 04:00:09 AM »
Perfect thank you !