Skip to content

Commit

Permalink
Merge pull request #128 from raido/master
Browse files Browse the repository at this point in the history
Urgent: Bug fix hasTouch check. Not possible do use document.ontouchstart
  • Loading branch information
jakiestfu committed Sep 30, 2013
2 parents f5e8a77 + 3e123b2 commit ad02a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
eventList = {},
utils = {
hasTouch: (doc.ontouchstart === null),
hasTouch: ('ontouchstart' in document.documentElement || window.navigator.msPointerEnabled),
eventType: function(action) {
var eventTypes = {
down: (utils.hasTouch ? 'touchstart' : 'mousedown'),
Expand Down

0 comments on commit ad02a26

Please sign in to comment.