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

Better recognition of pointer events #2745

Open
si13b opened this issue Oct 19, 2015 · 3 comments
Open

Better recognition of pointer events #2745

si13b opened this issue Oct 19, 2015 · 3 comments

Comments

@si13b
Copy link

si13b commented Oct 19, 2015

http://caniuse.com/#feat=pointer
http://www.w3.org/TR/pointerevents/

At present when you attempt to add an event handler for a pointer event, it is not registered correctly, since it is not recognised as a native event:

   myElement.addEvent('pointerdown', myFunc); // myFunc is never called on pointer down

I intend to implement this myself, which will pave the way for adding pointer support to mootools.more => Drag and Drag.Move, which I also hope to implement.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@SergioCrisostomo
Copy link
Member

Interesting. Have you tried to implement it already? Not sure how we can make cross-browser properties like tilt and pressure be consistent.

@si13b
Copy link
Author

si13b commented Oct 20, 2015

So far I've just made sure that it's recognised as a native event in Element.Event.js and ensured that the page/client objects are passed through in DOMEvent.js. Is there anything else that I should be considering?

@si13b
Copy link
Author

si13b commented Oct 20, 2015

I noticed that DOMEvent acts as some kind of meta-event or decorator. Should I be setting tilt/pressure etc as properties directly, or can people simply access it via the native event i.e. the DOMEvent.event property?

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

No branches or pull requests

2 participants