Updated dragging example. Changed the internal event handler functions to explicitly enforce the safe apply concept from Alex Vanston (https://coderwall.com/p/ngisma)