Skip to content

Replace global DRAGSTART and DRAGEND events with proper gesture processing #713

@parasyte

Description

@parasyte

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions