Skip to content
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 pinch stream #66

Open
appsforartists opened this issue Sep 15, 2016 · 2 comments
Open

Implement pinch stream #66

appsforartists opened this issue Sep 15, 2016 · 2 comments
Assignees
Projects

Comments

@appsforartists
Copy link
Member

appsforartists commented Sep 15, 2016

Take the pointersStream (#64) and transform it into a stream of scaling coefficients representing the ratio of the current distance-between-pointers from the starting distance-between-pointers.

This is probably just using the Pythagorean Theorem to compute the distance between the current pointers and scanning over them to compute the ratio.

Open question:

  • What happens if there are more than two pointers down at once?
    • Probably treat it as invalid input and do nothing. It will kill the direct manipulation metaphor if you try to compute a linear scale with more than two points; you can't guarantee the pointers moved in unison.
      • Is this an acceptable user experience? What if the user has a dirty touchscreen, cause a pointer to appear (and stay fixed) in a single place?
        • That might not be worth solving for. If the touchscreen is dirty enough that flaky pointers are being added, it will also convert drags to pinches, which will start breaking the experience anyway.
  • What happens if the user adds a pointer and then removes a pointer, so you have two different pointers than you started with?
    • Probably the same thing as if the user released all the pointers (instead of adding a third) and start fresh when you have two pointers again.
    • The deltas between frames are probably so small that even if this did the wrong thing, nobody would notice.
@appsforartists appsforartists added this to the Direct Manipulation Gesture Streams milestone Sep 15, 2016
@appsforartists appsforartists changed the title pinch stream Sep 15, 2016
@appsforartists
Copy link
Member Author

Pen

@appsforartists appsforartists self-assigned this Sep 30, 2016
@appsforartists
Copy link
Member Author

💻 I'm working on a diff at http://codereview.cc/D1692

@jverkoey jverkoey removed this from the Direct Manipulation Gesture Streams milestone Dec 28, 2016
@jverkoey jverkoey added this to appsforartists (Brenton) in Ownership Mar 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants