I have an object which can be dragged and dropped on the screen by a user, and its position is updated to other users in real-time via websocket. If user1 grabs the object and then user2 grabs it, I want to programmatically stop user1 drag, how do I do it?Thank you.
Asked
Active
Viewed 185 times
1
-
1Could you show us some code please? – Sumner Evans Apr 14 '14 at 01:58
-
@jsve the question can be simplified as: if a user is dragging an HTML object, how can I stop that action programmatically in Javascript? The code is quite long but if this doesn't help explain my question, I'll post it then. – boh Apr 14 '14 at 02:15
1 Answers
0
Based off your simplification of your question, it seems that this stackoverflow question and answer may be of use to you.