I’ve created 100 scene website / presentation. They all need to work with onSwipe (next scene, previous, sometimes swipe needs to go to a specific scene). I also have a menu as a persistent symbol on every scene. Menu is hidden and covering 100% of the scene when visible. Menu also needs to support scrolling (vertical and horizontal) but when I scroll scenes on the layer below the menu changes… Any ideas how to stop onSwipe when persistent symbol is visible?
My best recommendation would be to put an ‘On Drag’ action on the persistent symbol that runs javascript (though the javascript can be blank). Then the symbol will get the events and swipes won’t occur. When the persistent symbol is removed from the view the area should all be swipable.
Thanks jonathan,
It does work ok but I’ve noticed onDrag action executes javascript I use for touch events about 60-70 times. This slows things down massively…
Yeah, I’d like to see an example. The On Drag I was suggesting would basically be a no-op… it would be called a lot but not really doing anything in your case. However it looks like you are actually trying to do something in the code you sent.