Sorry, there was a typing error in the style definition. It´s correct now...
Function on button:
hypeDocument.startTimelineNamed('timelineName', hypeDocument.kDirectionForward) // or what ever you want to do
element.classList.add("disabled");
setTimeout(function(){
element.classList.remove("disabled");
}, 500);
Works for me on iPhone. You might test this on your Android device...
Put the 'preventDoubleClick'-part into a separate function. This way you have to write that code only once (given you named that function 'preventDoubleClick') you would call it this way:
hypeDocument.startTimelineNamed('timelineName', hypeDocument.kDirectionForward); // or whatever you want to do //
hypeDocument.functions().preventDoubleClick(hypeDocument, element, event); // call the function
Interesting, it seems that Hype's Allow user scaling checkbox now does not have any effect in Mobile Safari, but will still work for home page web apps (and also embedded, like in Hype Reflect).
Instead I think it may be wise to go back to the top of the thread for suggestions (or to this stack overflow response that I was looking at); from my testing a solution would be to add this to your Head HTML:
<style>
body {
touch-action: pan-x pan-y;
}
</style>
Note that your document already has style tags but erroneously some javascript code in it. Does that help?
I don't know where to look for the Javascript code? It could be a relic going back to when I tried to convert a project from Flash to HTML5 a decade ago.
Where can I see and or eliminate the unnecessary code?
Go to the Document Inspector (command-1) and then click Edit Head HTML…. From there you should be able to eliminate the incorrect code and try the style from above.