This is a small example implementing click-to-drag with a bit of JavaScript…Please let us know if you have any questions!
- Watch the short screencast associated with this sketch here
- Check out another gist of ours on mouse events here
- Modify the code so that:
- …if you double-click the square, it disappears