We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Think I've come across a bug where mouseReleased() does not get triggered. In the simplified example I've got up at the link below, you can see in the console that mouseReleased() does not trigger on actual mouseRelease. You have to click 2x for the release to trigger.
Only happens when attaching an HTML element to the mouseX and mouseY. Otherwise, works as expected.
Am I right? Is this a bug with mouseReleased? http://dfilm.com/lucs/releasetest/testdrag.html
Note: test it in FireFox and refresh once to get it to work (I haven't worked out image preloading yet, so the images need to cache before the example will work). Unrelated, but also seems that element.width doesn't work in Chrome. Instead I have to do: myelement.elt.naturalHeight.