We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f02a26 + 4ec1cbe commit b365287Copy full SHA for b365287
1 file changed
src/mouse.js
@@ -14,7 +14,7 @@
14
Snap.plugin(function (Snap, Element, Paper, glob) {
15
var elproto = Element.prototype,
16
has = "hasOwnProperty",
17
- supportsTouch = "createTouch" in glob.doc,
+ supportsTouch = (('ontouchstart' in window) || window.TouchEvent || window.DocumentTouch && document instanceof DocumentTouch),
18
events = [
19
"click", "dblclick", "mousedown", "mousemove", "mouseout",
20
"mouseover", "mouseup", "touchstart", "touchmove", "touchend",
0 commit comments