The draggable entity is the only code that publishes the global drag events (weird! this should be handled by the lower level pointer code) The draggable entity receives its own DRAG event after handling the normal up/down event. AFAICT, It does this specifically to trigger events in the tests. It seems that doing tests would be easier with a proper API to trigger or invoke a synthetic event. On par with the DOM dispatchEvent method
Second, it might be nice if melonJS supported "real" gestures; drag, pinch, swipe, double tap, etc. Not just pretending that DRAGSTART and DRAGEND are a thing. There's a nice iOS-specific series of touch-gesture events to piggyback off of: https://developer.apple.com/library/mac/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
The draggable entity is the only code that publishes the global drag events (weird! this should be handled by the lower level pointer code) The draggable entity receives its own DRAG event after handling the normal
up/downevent. AFAICT, It does this specifically to trigger events in the tests. It seems that doing tests would be easier with a proper API to trigger or invoke a synthetic event. On par with the DOMdispatchEventmethodSecond, it might be nice if melonJS supported "real" gestures;
drag,pinch,swipe,double tap, etc. Not just pretending thatDRAGSTARTandDRAGENDare a thing. There's a nice iOS-specific series of touch-gesture events to piggyback off of: https://developer.apple.com/library/mac/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html