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

Removed "pen contact" condition on button/buttons. #96

Merged
merged 3 commits into from Jul 13, 2016

Conversation

mustaqahmed
Copy link
Member

@mustaqahmed mustaqahmed commented Jun 23, 2016

To support button presses on a hovering stylus, button and buttons shouldn't require a pen contact when barrel/eraser buttons are pressed. This change makes pen buttons independent of pen contact.

Note that contact independent button/buttons values cause subtle changes in active button state.

Closes #14.

To support button presses on a hovering stylus, button and buttons shouldn't require a pen contact when barrel/eraser buttons are pressed.
@@ -364,7 +364,7 @@
<table class="simple">
<thead><tr><th>Current state of device buttons</th><th><code>buttons</code></th></tr></thead>
<tbody>
<tr><td><b>Mouse move with no buttons pressed</b></td><td>0</td></tr>
<tr><td><b>Mouse moved with no buttons pressed</b><br>, Pen moved without changing its <a>active buttons state</a></td><td>0</td></tr>
Copy link
Member Author

Choose a reason for hiding this comment

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

A quick thought: this seems more correct to replace the mouse/pen specific lines with:
"No change in active buttons state => 0"

@patrickhlauke
Copy link
Member

LGTM (and ignore the remaining note/discussion about hovering click, as I think that's sufficiently addressed in current wording and not exactly standard anyway).

@@ -364,13 +364,13 @@
<table class="simple">
<thead><tr><th>Current state of device buttons</th><th><code>buttons</code></th></tr></thead>
<tbody>
<tr><td><b>Mouse move with no buttons pressed</b></td><td>0</td></tr>
<tr><td>Left Mouse,<br>Touch Contact,<br>Pen contact (with no modifier buttons pressed)</td><td>1</td></tr>
<tr><td><b>Mouse moved with no buttons pressed</b>,<br> Pen moved while hovering with no buttons pressed</td><td>0</td></tr>
Copy link
Member Author

Choose a reason for hiding this comment

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

Pen moved while hovering with no buttons pressed

Note that "moved" here includes the cases when the "footprint" of the pen is unmoved: e.g. a change in twist. I think the pen still must move physically to generate an event, so this is fine.

Do we need a note?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's fine to treat that as implied.

@RByers
Copy link
Contributor

RByers commented Jul 13, 2016

LGTM. Not seeing any other objections to the wording, let's land this for now - we can always continue to iterate.

@RByers
Copy link
Contributor

RByers commented Jul 13, 2016

Oh except this is substantial enough that we probably need an entry in the changlog for it (just link to the PR).

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.

None yet

4 participants