Skip to content

Commit

Permalink
Add snippet option to remove Touch events
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbr committed Jan 19, 2022
1 parent 97721f5 commit 9167664
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/touch-fix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Remove touch checks on selected mobile sites
delete Document.prototype.createTouch
delete Document.prototype.ontouchstart
delete Document.prototype.ontouchend
delete Document.prototype.ontouchcancel
delete Document.prototype.TouchEvent

0 comments on commit 9167664

Please sign in to comment.