Over a million developers have joined DZone.

W3C Accepts Microsoft’s Multiple Pointer Types Submission

· Web Dev Zone

Make the transition to Node.js if you are a Java, PHP, Rails or .NET developer with these resources to help jumpstart your Node.js knowledge plus pick up some development tips.  Brought to you in partnership with IBM.

Today the W3C has accepted and published Microsoft’s submission of a new  way for Web sites and app developers to support multiple pointing devices, such as mouse, pen and multi-touch.

Microsoft: Today, most web content is used with and/or designed for mouse input. Those that handle input in a custom manner typically code to DOM Level 3 Mouse Events. Newer computing devices today, however, incorporate other forms of input, like touchscreens or pen input. Event types have been proposed for handling each of these forms of input individually. However, that approach requires a step function in opportunity cost to authors when adding support for a new input type. This often creates a compatibility problem when content is written with only one device type in mind. Additionally, for compatibility with existing mouse-based content, most user agents fire Mouse Events for all input types. This makes it ambiguous whether a Mouse Event represents an actual mouse device or is being produced from another input type for compatibility, which makes it hard to code to both device types simultaneously.

W3C: The proposed event model described in this specification defines mechanisms for managing multiple concurrent pointer instances simultaneously from one or more input devices, for detecting which pointer event is the primary input, for identifying which device type produced each pointer, for allowing chorded button inputs to detect all of the buttons which are active during the dispatch of the event, and for allowing pointer events to be targeted at specific elements. This event model includes consideration for devices that do and do not allow for “hover” interaction, a major concern for accessibility.



Learn why developers are gravitating towards Node and its ability to retain and leverage the skills of JavaScript developers and the ability to deliver projects faster than other languages can.  Brought to you in partnership with IBM.


Published at DZone with permission of Jerry Nixon, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}