0

Gaming is really really fun when you have to tap and hold to do something, and it activates a context menu. Or when you double tap on a game to do an action and it zooms in.

So when I embed a HTML5 game using an iframe, how do I stop right click and double tap to zoom so that the player of the game is not annoyed.

1 Answers1

1

Use FastClick https://github.com/ftlabs/fastclick .. it eliminate the 300ms delay between a physical tap and the firing of a click event on mobile browsers.

window.addEventListener('load', function() {
    FastClick.attach(document.body);
}, false);
Mardoxx
  • 4,372
  • 7
  • 41
  • 67
prakashapkota
  • 321
  • 2
  • 6