Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Button state -1 for no mouse buttons depressed #173

Closed
bethge opened this issue Mar 28, 2015 · 1 comment
Closed

Button state -1 for no mouse buttons depressed #173

bethge opened this issue Mar 28, 2015 · 1 comment
Milestone

Comments

@bethge
Copy link
Contributor

bethge commented Mar 28, 2015

In the Pointer Events spec, section 5.1.1 it says, that if no mouse buttons are depressed, the button property of the event is supposed to be -1. If I am not mistaken, PEP currently only passes through the mouse event's button value (which is 0).

IE appears to have already extended the button state range to -1, see IE Dev Center Button Property.

I was wondering if you also intend to implement this behavior. (I believe @Steditor hinted at this in #168)

@Steditor
Copy link
Contributor

This should be easy to implement with the changes of #168 (it could be a simple reverse mapping from buttons to button) - we should probably try to make some progress there...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants