-
All replies
-
Helpful answers
-
Oct 31, 2013 11:33 AM in response to Oliboy50by patixa,I don't understand your question. Are you trying to support both tapping and dragging of images? If so, you will need to override the various touch events. To create an event handler, select each image in the gallery, then Code > Object Events > Touched Down (as one example) > Execute JavaScript; a code snippet will appear in the Code Editor window to get you started.
-
Nov 5, 2013 2:11 AM in response to patixaby Oliboy50,Thank you for your reply.
I thought the title of my question was clear enough.
I want to click on images that are inside a GalleryView but only trigger the click event if the drag event isn't triggered itself... actually if I set a click event on those images now, I can't use the gallery view properly without trigger a click event...
I thought i could do this using "event.preventDefault()" on click event if drag event is triggered... but that means users will have to be really accurate when clicking on images...
Still don't know the best way
-
Nov 18, 2013 10:51 AM in response to Oliboy50by rtakayasu,Hi,
You must be doing diffently than I am. My gallery appears to be doing what you're looking for; swipe will change the gallery view (previous/next cell) and tap will activate my JS code.
I have the gallery view with images on an iPhoen project. The images in the 1st and 2nd cell have the onviewactivate event. I just changed my image in my 2rd cell to got to page action. Both behaves as expected on my iPod touch.
If we can identify how you're doing differently, maybe we can help you.
-Takayasu