Jump to content

pointerover On the mobile side


pete1
 Share

Recommended Posts

Thank you, this is a drag connection, the original mouse enters the phone to determine whether to connect, but the pointerover mobile is invalid, I get the local coordinates through e.data.getLocalPosition when pointermove
To judge whether to enter the phone, maybe this is not the best solution.
 
Nice day

3CEA4326-E76D-49e1-8FAB-B3EA0E0BF8DF.png

Link to comment
Share on other sites

You need to choose your words carefully, "the original mouse enters the phone to determine whether to connect" doesn't mean much because:

1. there's no mouse to use on a phone

2. "the mouse enters the phone" doesn't mean anything to us. It might be very clear for you but it really means nothing for us.

3. "to determine whether to connect". Again, this might be very obvious for you but it really doesn't mean anything for anyone who doesn't know what your app is supposed to do. 

 

As Ivan said it first, telepathy doesn't work here, we don't know what you are talking about because we don't know what your app does.

Link to comment
Share on other sites

In the color doll pointerdown, then pointermove, when the pointerover phone Sprite, confirm the connection, there is no pointerover on the mobile side, I would like to know if there is a better alternative method, I am deeply sorry, maybe my expression is not clear, maybe it is my Google Translation does not work accurately, thank you for your patience.

Link to comment
Share on other sites

  • 1 year later...

pointerover (and similar events) work on mobile when the finger is down, but you must opt into that behavior. For example, once `pointerdown` fires, if you move your finger, you can use `pointerover` as it moves onto different elements.

See here for details:

https://github.com/w3c/pointerevents/issues/346

Here is a demo that works on mobile (drag with your finger starting on the cell on which the cube is):

https://cdpn.io/trusktr/debug/eYdPOKb

Edited by trusktr
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...