Example of implementing drag & drop using mouse events such as mousedown
,
mouseup
, and pressmove
. Some browsers do not
allow access to pixel data when running local files, and may throw a
security error or not work unless the content is running on a server.