Skip to content

Add mouse drag/fling support.#6

Open
iamdustan wants to merge 1 commit into
petehunt:masterfrom
iamdustan:mouse-support
Open

Add mouse drag/fling support.#6
iamdustan wants to merge 1 commit into
petehunt:masterfrom
iamdustan:mouse-support

Conversation

@iamdustan
Copy link
Copy Markdown

Hey @petehunt,

I’m exploring adding other input method support to this as is. I have a few concerns on my implementation I’d appreciate your feedback on.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bit right here is namely where my concern is. I suspect that the ResponderEventsPlugin may be what I need to keep mousemove events focused on initial target to match the implementation of touchmove events. Is this correct?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pointerevents follow the mouse rules by default, but expose two additional methods to opt-in and out of the touch model at will.

  • setPointerCapture
  • releasePointerCapture

To see what this looks like in action check out: http://patrickhlauke.github.io/touch/tests/pointercapture.html

Spec: http://www.w3.org/TR/pointerevents/#attributes-2
MSDN Docs: http://msdn.microsoft.com/en-us/library/ie/hh771882%28v=vs.85%29.aspx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant