Merge pull request #616 from enition/master

createTouch - Deprecated
master
Ian 2021-07-27 07:25:21 +01:00 committed by GitHub
commit b365287722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
Snap.plugin(function (Snap, Element, Paper, glob) { Snap.plugin(function (Snap, Element, Paper, glob) {
var elproto = Element.prototype, var elproto = Element.prototype,
has = "hasOwnProperty", has = "hasOwnProperty",
supportsTouch = "createTouch" in glob.doc, supportsTouch = (('ontouchstart' in window) || window.TouchEvent || window.DocumentTouch && document instanceof DocumentTouch),
events = [ events = [
"click", "dblclick", "mousedown", "mousemove", "mouseout", "click", "dblclick", "mousedown", "mousemove", "mouseout",
"mouseover", "mouseup", "touchstart", "touchmove", "touchend", "mouseover", "mouseup", "touchstart", "touchmove", "touchend",