Skip to content

Commit b365287

Browse files
authored
Merge pull request #616 from enition/master
createTouch - Deprecated
2 parents 6f02a26 + 4ec1cbe commit b365287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mouse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Snap.plugin(function (Snap, Element, Paper, glob) {
1515
var elproto = Element.prototype,
1616
has = "hasOwnProperty",
17-
supportsTouch = "createTouch" in glob.doc,
17+
supportsTouch = (('ontouchstart' in window) || window.TouchEvent || window.DocumentTouch && document instanceof DocumentTouch),
1818
events = [
1919
"click", "dblclick", "mousedown", "mousemove", "mouseout",
2020
"mouseover", "mouseup", "touchstart", "touchmove", "touchend",

0 commit comments

Comments
 (0)