Skip to content

Commit

Permalink
Add constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
sahirv committed Mar 6, 2024
1 parent 06be8e0 commit fe6a97d
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,22 @@ <h3>Converting between <code>tiltX</code> / <code>tiltY</code> and <code>altitud
</pre>
</section>
</section>
<section>
<h2><code>DeviceProperties</code> interface</h2>
<pre class="idl">
[Exposed=PointerEvent]
interface DeviceProperties {
constructor(long uniqueId);
readonly attribute long uniqueId;
};
</pre>
<dl data-dfn-for="DeviceProperties" data-link-for="DeviceProperties">
<dt><dfn>uniqueId</dfn></dt>
<dd>
<p>A unique identifier for the pointing device. Pointer events generated from the same physical device will have the same <code>uniqueId</code> for the browsing session. A generic <code>uniqueId</code> value of <code>1</code> MUST be reserved for events generated by the primary mouse device. The <code>uniqueId</code> value of <code>-1</code> MUST be reserved and used to indicate events whose generating device could not be identified. <code>uniqueId</code> may be omitted/unset if hardware constraints prevent the UA from obtaining the device identifier. Like <a href="#dom-pointerevent-pointerid">pointerId</a>, to minimize the chance of fingerprinting and tracking across different pages or domains, the <code>uniqueId</code> MUST only be associated explicitly with that particular pointing device for the lifetime of the page / session, and a new randomized <code>uniqueId</code> MUST be chosen the next time that particular pointing device is used again in a new session.</p>
</dd>
</dl>
</section>

<section>
<h2><dfn>Pointer Event types</dfn></h2>
Expand Down Expand Up @@ -852,21 +868,6 @@ <h4>Event dispatch</h4>
</section>
</section>
</section>
<section>
<h2><code>DeviceProperties</code> interface</h2>
<pre class="idl">
[Exposed=PointerEvent]
interface DeviceProperties {
readonly attribute long uniqueId;
};
</pre>
<dl data-dfn-for="DeviceProperties" data-link-for="DeviceProperties">
<dt><dfn>uniqueId</dfn></dt>
<dd>
<p>A unique identifier for the pointing device. Pointer events generated from the same physical device will have the same <code>uniqueId</code> for the browsing session. A generic <code>uniqueId</code> value of <code>1</code> MUST be reserved for events generated by the primary mouse device. The <code>uniqueId</code> value of <code>-1</code> MUST be reserved and used to indicate events whose generating device could not be identified. <code>uniqueId</code> may be omitted/unset if hardware constraints prevent the UA from obtaining the device identifier. Like <a href="#dom-pointerevent-pointerid">pointerId</a>, to minimize the chance of fingerprinting and tracking across different pages or domains, the <code>uniqueId</code> MUST only be associated explicitly with that particular pointing device for the lifetime of the page / session, and a new randomized <code>uniqueId</code> MUST be chosen the next time that particular pointing device is used again in a new session.</p>
</dd>
</dl>
</section>
</section>

<section>
Expand Down

0 comments on commit fe6a97d

Please sign in to comment.