Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Commit 303b36e

Browse files
committed
added force attribute; added issues around InkML, units, preventDefault(), timestamp
1 parent 6d222fb commit 303b36e

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

touchevents.html

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
// if you want to have extra CSS, append them to this list
4343
// it is recommended that the respec.css stylesheet be kept
44-
extraCSS: ["http://dev.w3.org/2009/dap/ReSpec.js/css/respec.css"],
44+
extraCSS: ["http://www.w3.org/StyleSheets/TR/W3C-TR.css", "http://dev.w3.org/2009/dap/ReSpec.js/css/respec.css"],
4545

4646
// editors, add as many as you like
4747
// only "name" is required
@@ -126,13 +126,17 @@ <h2><dfn>TouchPoint</dfn> Interface</h2>
126126

127127
<dt>readonly attribute float radiusX</dt>
128128
<dd>
129-
the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the x-axis, in pixels; <code>1</code> if no value is known
129+
the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the x-axis, in pixels; <code>1</code> if no value is known. This attribute may not be available on all user agents or platforms.
130130
</dd>
131131
<dt>readonly attribute float radiusY</dt>
132132
<dd>
133-
the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the y-axis, in pixels; <code>1</code> if no value is known
133+
the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the y-axis, in pixels; <code>1</code> if no value is known. This attribute may not be available on all user agents or platforms.
134134
</dd>
135135

136+
<dt>readonly attribute float force</dt>
137+
<dd>
138+
a relative value of pressure applied, in the range <code>0</code> to <code>1</code>; <code>0</code> if no value is known. This attribute may not be available on all user agents or platforms.
139+
</dd>
136140

137141
<dt>readonly attribute boolean ctrlKey</dt>
138142
<dd>
@@ -147,6 +151,12 @@ <h2><dfn>TouchPoint</dfn> Interface</h2>
147151
<code>true</code> if the alt (Alternate) key modifier is activated; otherwise <code>false</code>
148152
</dd>
149153
</dl>
154+
155+
<p class="issue" id="issue-inkml"><strong>Issue:</strong> Consider aligning with "channels" and values from <a href="http://www.w3.org/TR/InkML/#channelContents">Ink Markup Language (InkML)</a>.</p>
156+
157+
<p class="issue" id="issue-timestamp"><strong>Issue:</strong> Should each touchpoint have its own timestamp?</p>
158+
159+
<p class="issue" id="issue-units"><strong>Issue:</strong> What are units of radiusX/radiusY?</p>
150160
</section>
151161

152162

@@ -193,6 +203,9 @@ <h2>Touch Interface</h2>
193203
a list of <dfn>TouchPoint</dfn>s for every point of contact which contributed to the event
194204
</dd>
195205
</dl>
206+
207+
<p class="issue" id="issue-preventDefault"><strong>Issue:</strong> define behavior of preventDefault() method.</p>
208+
196209

197210
<section>
198211
<h3 id="event-touchstart">The <dfn>touchstart</dfn> event</h3>

0 commit comments

Comments
 (0)