I made some sample of jQuery Dragging
http://jsbin.com/ehuke4/6/edit
Its all ok when i drag to the right
But when I drag to the left it stops
I think its becuase im out of the item.
How can i fix it ?
p.s : you can save it in the editor.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
UPDATE: Updated your JSBin with quite a few changes to get it to work. You need to detect mouseup, mousedown and mousemove events on the ‘document’ and use a second boolean to check if the box is being held. Hope this helps.
Also, I love what Threedubmedia has done with drag and drop interactivity. Go here and check out their basic example if you want. I use their libraries in some of my projects. Where I think their basic example will be particularly useful for you is: when I click and drag your box its position does not drag relative to where you grabbed it. Their example would help to correct this.