-
Notifications
You must be signed in to change notification settings - Fork 26
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
Implement pointersStream #64
Comments
A naïve version of this would be observableFrom(
[
'pointerenter',
'pointerdown',
'pointermove',
'pointerup',
'pointercancel',
'pointerout',
'pointerleave',
'gotpointercapture',
'lostpointercapture',
].map(
type => observableFromEvent(target, type)
)
)::mergeAll()::groupBy(
event => event.pointerId
); but that's not super helpful. We don't care about most of the non-core pointer events, but would want to handle down, move, and up independently. |
For the streams I need to implement, I don't think I need to even bother grouping by pointerId. If we can batch them into frames, we can map each frame into {position,rotation,scale} in the appropriate streams. |
Prototyping this in this pen |
Should We can always write a custom observable after the basics of direct manipulation are implemented and tested to handle this edge case. |
💻 I'm working on a diff at http://codereview.cc/D1692 |
Deprecated by latest spec. |
On every
pointer{down,move,up}
, dispatch an array of all the current pointers.The text was updated successfully, but these errors were encountered: