-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pointer events. #584
Pointer events. #584
Conversation
Example usage:
If you hover over "hello" it will emit your movements. If you click and drag on "hello" it will continue to emit your movements for the duration of your drag. Cool, huh? Unfortunately this code doesn't actually work unless I change |
Oh, I suppose this works.
|
Can we merge this now? |
This looks awesome. Thanks! |
I annotated these based on the pointer events spec. I tested it out and was able to register these event handlers in
reason-react
and log the event fields. However, I wasn't able to test any advanced features becausereason-react
doesn't implementElement.setPointerCapture
. This is implemented inbs-webapi
though, so I tried importing that package, but it had an incompatible type forpointerId
.I don't know how I can make these two packages compatible unless
reason-react
treatsbs-webapi
as a dependency and references its custom type. @peterpme can we do that?