From 0ece38973f310bdaa97ca332109ecf962d64cebe Mon Sep 17 00:00:00 2001
From: Chong Zhang
- The The following section describes extensions to the existing The
touchcancel
- Extensions to the
- Document
InterfaceDocument
interface [[!DOM-LEVEL-3-CORE]] contains methods
- by which the user can create Touch
and TouchList
- objects.
-
-
- Touch createTouch()
Touch
object with the specified attributes.
-
-
- view
target
identifier
pageX
pageY
screenX
screenY
TouchList createTouchList()
TouchList
object consisting of zero or more Touch
objects.
- Calling this method with no arguments creates a TouchList
with no objects in it
- and length 0 (zero).
-
-
- Touch
... touchesExtensions to the
GlobalEventHandlers
interfaceGlobalEventHandlers
interface, defined in [[!HTML5]], to facilitate the event handler registration.Legacy Event Initializers
The following features are obsolete and should only be implemented by user agents that require compatibility with legacy software.
Document
Interface
+ The Document
interface [[!DOM-LEVEL-3-CORE]] contains methods
+ by which the user can create Touch
and TouchList
+ objects.
+
+ Document.createTouch
is superseded by the Touch
constructor.
+
+ Document.createTouchList
creates a TouchList
object
+ consisting of zero or more Touch
objects. Document.createTouchList
+ is superseded by passing sequences of Touch
objects directly to the
+ TouchEvent
constructor.
+
+ partial interface Document { + // Deprecated in this specification + Touch createTouch (WindowProxy view, EventTarget target, long identifier, double pageX, double pageY, double screenX, double screenY); + // Deprecated in this specification + TouchList createTouchList (Touch... touches); + }; ++
TouchEvent