VictorF

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

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!

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.