Author Topic: How To Scroll while swiping over Buttons  (Read 4237 times)

yahodahan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
How To Scroll while swiping over Buttons
« on: June 22, 2012, 01:53:43 AM »
Hi there-

I have a horizontal scrollview, and in it are 3 large buttons. They take up most of the space, actually. This works well if scrolling by swiping along the top/bottom where the buttons are not, however if I try to scroll by swiping across the buttons, only the button's actions are picked up.

To put that another way, if I tap/click on a area of the screen where there is a button, and then drag, no scrolling happens.

FYI, the "buttons" are large "World Select" images that I need the user to swipe through, then tap on the chosen world.

Is there a way around this? Thank you very much for any help!
gw

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How To Scroll while swiping over Buttons
« Reply #1 on: June 22, 2012, 10:40:07 AM »
You need to attach the drag script to your buttons as well, not just the background collider.

yahodahan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: How To Scroll while swiping over Buttons
« Reply #2 on: June 22, 2012, 12:36:26 PM »
Ahh, thanks much!