Skip to content

Commit

Permalink
Updated supportsTouch query from modernizr #1084
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasAlabes committed Mar 24, 2019
1 parent 7710d80 commit cecd76c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev/raphael.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cecd76c

Please sign in to comment.