Jump to content

Multiple draggable objects


farfade
 Share

Recommended Posts

Hi,

 

I try to manage multiple draggable sprites on mobile (drag n drop based on touch events).

 

Example 8 is exactly what I'm looking for but it doesn't work fine on mobile (android & ios).

 

 

Only the last sprite added is draggable (others don't move).

If I move it, THEN, the second to last added becomes draggable, etc. etc.

(I have to drag every sprite in the correct order to make them interactive - very stange !!!)

 

touchstart & touchend events seems to work fine.

It's like the "touchmove" event doesn't fire correctly.

 

 

Does anyone have an idea ?

 

thx,

Raph

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...