this.onPress = function() { this.startDrag(); }; this.onRelease = onReleaseOutside=function () { this.stopDrag(); };