Mike018 Posted September 28, 2017 Share Posted September 28, 2017 I have a page where I want users to swipe to go to the next page, but there are also a lot of buttons on that page. How do you I prevent the click event from happening when the user is trying to swipe when they start their swipe right on top of a button? I'm using this plugin here for the swiping: https://github.com/flogvit/phaser-swipe Link to comment Share on other sites More sharing options...
ncil Posted September 29, 2017 Share Posted September 29, 2017 My initial thought is that the button action/event should only fire if swipe.direction == null. So you probably need to put a check on the button to make sure it's not a swipe. Can you post some of your code so we can take a look? Link to comment Share on other sites More sharing options...
Recommended Posts