Jump to content

iPhone Safari UniPanel - MouseEvents


Kattes

Recommended Posts

Hi there,
Just a very simple question: Is it possible to use mouse events (OnMouseDown, OnMouseClick, OnMouseUp) in a standard uniGUI application if running it on an iPhone Safari browser?

It seems so that none of these events are working if this browser is used. No problems with Chrome and Android, but Safari mobile seems to be somehow "special".

Kind regards,
Kattes

Link to comment
Share on other sites

Hi again,

Please forget my question above - I finally found out that not uniGUI is responsible for the issue with Safari mobile. The problem comes from an Iframe I used to wrap the uniGUI application into an external HTML page.

To get my problem fixed I just added the following to the HTML-code of my wrapper:

<script>
  window.addEventListener('touchstart', {});
</script>

So if anyone comes across the same problem with iframes, this is the solution.

Best regards,
Kattes

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...