Skip to content

Investigate/Improve TouchEvent support #129

@JoshMarler

Description

@JoshMarler

We are currently doing some work to improve blueprint's SyntheticEvent implementation. MouseEvent is gaining adoption of properties like target, relatedTarget, shitKey etc. It could be very useful to provide a TouchEvent for some applications.

This should match the spec here as close as possible: https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent

Ideally we would provide the following set of events: onTouchCancel onTouchEnd onTouchMove onTouchStart. See: https://reactjs.org/docs/events.html

As per this forum post JUCE has a MultiTouch example we could leverage:

https://forum.juce.com/t/how-to-do-ios-style-multitouch-handling/23936

It may be that we need to provide some mechanism to opt into this behaviour as the C++ side of generating TouchEvents is sure to incur some level of overhead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions