Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
DOM event
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Touch events ==== Web browsers running on [[Touchscreen|touch-enabled]] devices, such as Apple's [[IOS (Apple)|iOS]] and Google's [[Android (operating system)|Android]], generate additional events.<ref name="w3c_v2"/>{{rp|Β§5.3}} {| class="wikitable" ! Category ! Type ! Attribute ! Description ! Bubbles ! Cancelable |- | rowspan=6 | Touch | touchstart | | Fires when a finger is placed on the touch surface/screen. | {{Yes}} | {{Yes}} |- | touchend | | Fires when a finger is removed from the touch surface/screen. | {{Yes}} | {{Yes}} |- | touchmove | | Fires when a finger already placed on the screen is moved across the screen. | {{Yes}} | {{Yes}} |- | touchenter | | Fires when a touch point moves onto the interactive area defined by a DOM element. | {{Yes}} | {{Yes}} |- | touchleave | | Fires when a touch point moves off the interactive area defined by a DOM element. | {{Yes}} | {{Yes}} |- | touchcancel | | A [[user agent]] must dispatch this event type to indicate when a TouchPoint has been disrupted in an implementation-specific manner, such as by moving outside the bounds of the UA window. A user agent may also dispatch this event type when the user places more touch points (The coordinate point at which a pointer (e.g. finger or stylus) intersects the target surface of an interface) on the touch surface than the device or implementation is configured to store, in which case the earliest TouchPoint object in the TouchList should be removed.<ref name="w3c_v2"/>{{rp|Β§5.9}} | {{Yes}} | {{No}} |- |} In the [[W3C]] draft recommendation, a <code>TouchEvent</code> delivers a <code>TouchList</code> of <code>Touch</code> locations, the [[modifier key]]s that were active, a <code>TouchList</code> of <code>Touch</code> locations within the targeted DOM element, and a <code>TouchList</code> of <code>Touch</code> locations that have changed since the previous <code>TouchEvent</code>.<ref name="w3c_v2">{{cite web|title=Touch Events version 2 - W3C Editor's Draft|url=http://dvcs.w3.org/hg/webevents/raw-file/tip/touchevents.html|publisher=W3C|access-date=10 December 2011|date=14 November 2011}}</ref> [[Apple Inc.|Apple]] didn't join this working group, and delayed W3C recommendation of its Touch Events Specification by disclosing [[software patent|patents]] late in the recommendation process.<ref name="opera">{{cite web|title=Apple using patents to undermine open standards again|url=http://my.opera.com/haavard/blog/2011/12/09/apple-w3c|publisher=opera.com|access-date=9 December 2011|date=9 December 2011}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)