Button press / swipe gesture conflict


#1

I was trying to add swipe functionality to a project that is nothing but full screen image buttons. The only way I can seem to make it work is to have an area withOUT buttons which makes a little zone that then becomes swipe-able. Am I correct in assuming you can’t have swipe areas stacked over or under buttons? I’ve tried assigning the swipe trigger to the scene as well as a transparent rectangle on top of the whole scene and it either doesn’t work or cancels out the button functionality.

Thanks,
Carson


#2

Hi @carson, you could add the gesture to the asset itself (the rectangle). Gestures are supported on static assets.


#3

That’s what I was saying I did (in addition to trying it on the scene)… When I put it on the transparent rectangle- it works, but it blocks my buttons from being pressed. I know Inuiface will register the top-most button in cases where they are stacked on top of eachother but didn’t know if gestures were the same way… I guess so.


#4

here’s a stripped down version of what I was trying to do.
Tap and swipe are enabled on the button which I couldn’t get working.


#5

Hi Chloe,

I’m having a similar issue with a project I’m working on. But I’ve come up against a different issue. I’ve tried to add both a SWIPE UP and a SWIPE DOWN gesture to the same static rectangle, to “scroll” through the six items I have. But it would only recognize the SWIPE UP gesture, and NOT the swipe down gesture. Can you not add two similar gestures to the same static rectangle?

Then, if we can three buttons on one of the six items, couldn’t I just add those three buttons to the top of the project, so they’d register? Thanks,

Will


#6

Since we talked about it today Will @wcruthers, I think you already fixed this issue :wink: