How can I make a button state change work on iPad?

mogarick shared this question 5 years ago
Answered

If i use onToggle to switch image it remains in the 2nd state. I need to click on the buttón again to restore the past original state.


If i use dynamic panel it doesn't work. In this case I use onMouseDown and onMouseUp. It only works in desktop browser.


Since there's no tap event i use click but I can't play with button state changes because the state doesn't get back to the original one.


So how can a get this to work ok on iPad?

Comments (3)

photo
1

I'm afraid the HTML we generate for iPad doesn't support 'on tap down/on tap up'. Furthermore, in the next version, we will reduce the amount of events allowed when you are prototyping for iPad.

photo
1

And why is that?


Your are not considering people prototyping for iPad for next version?


In other words are you telling me JIMP is not the right tool for iPad Prototyping?

photo
1

it's because Safari for iPad doesn't allow it. We should force it using javascript to make it work. We will, eventually.