Over a million developers have joined DZone.

W3C Accepts Microsoft’s Multiple Pointer Types Submission

DZone's Guide to

W3C Accepts Microsoft’s Multiple Pointer Types Submission

· Web Dev Zone ·
Free Resource

Jumpstart your Angular applications with Indigo.Design, a unified platform for visual design, UX prototyping, code generation, and app development.

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.



Take a look at an Indigo.Design sample application to learn more about how apps are created with design to code software.


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}