Jump to content

[SOLVED] POINTERDOUBLETAP in a mobile device? (Android)


VictorF
 Share

Recommended Posts

Hi All I'v just tried to make a fast example of double tapping in a mobile device but none of the two methods I know worked properly:

 

scene.onPointerObservable.add((pointerInfo) => {
  switch (pointerInfo.type) {
    case BABYLON.PointerEventTypes.POINTERDOUBLETAP:
      console.log("POINTER DOUBLE-TAP");
      break;
  }
});
window.addEventListener("dblclick", function () {
  console.log("POINTER DOUBLE-TAP B");              
});

Both are working ok in PC and in the desktop version of the web in my mobile device (Google Chrome)

Any idea about this?

Thank you in advance!

Link to comment
Share on other sites

That might be a slightly different issue but I thought I would bring it to the discussion in case it's related:

 I recently had a Galaxy Note user who reported that a double-tap on my game canvas would zoom-in, and then there will be no way to zoom-out.

My code is not handling double-tap and I did not experience the problem on my own device (Moto G5) so, I believe that there must be a default behaviour for double-tap on Galaxy Note?

Hope that can help.

 

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.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...