From cecd76c65f1a37d59e623aedf07de560f4d30a4e Mon Sep 17 00:00:00 2001 From: Tomas Alabes Date: Sat, 23 Mar 2019 20:37:38 -0700 Subject: [PATCH] Updated supportsTouch query from modernizr #1084 --- dev/raphael.core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/raphael.core.js b/dev/raphael.core.js index 0c4038bf..162682cb 100644 --- a/dev/raphael.core.js +++ b/dev/raphael.core.js @@ -122,7 +122,8 @@ define(["eve"], function(eve) { appendChild = "appendChild", apply = "apply", concat = "concat", - supportsTouch = ('ontouchstart' in g.win) || g.win.DocumentTouch && g.doc instanceof DocumentTouch, //taken from Modernizr touch test + //taken from Modernizr touch test: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js#L40 + supportsTouch = ('ontouchstart' in window) || window.TouchEvent || window.DocumentTouch && document instanceof DocumentTouch, E = "", S = " ", Str = String,