Implementing the onDrag attribute

This attribute will be called whenever the drag ends. It is useful if you want your application to only trigger a change (say an API call) when the user releases his mouse.

I added a test as well as a demo in example.html.