Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

width property

The width (magnitude on the X axis), in CSS pixels, of the contact geometry of the pointer.

This property is read-only.

Internet Explorer 10

 

Syntax

JavaScript
ptr = object.width

 

Property values

Type: long

Remarks

For touch hardware that doesn't support width or height, a CSS document pixel equivalent of 7 millimeters is returned. For mouse or pen input, a value off 1 pixel is returned.

In Internet Explorer 10, the returned value is in screen pixels. In Internet Explorer 11, the returned value is in CSS document pixels, where for example, a div sized to the values of PointerEvent.width and PointerEvent.height would have the same size as the finger contact.

See also

PointerEvent

 

 

Show:
© 2015 Microsoft