Loading ...
Sorry, an error occurred while loading the content.

[Extremely Important] Touch And Mouse: Together Again For The First Time

Expand Messages
  • Zia Khan
    The question is how to develop for touch, mouse and gestures in Html5 across all browsers and in all devices? To understand the background first read
    Message 1 of 1 , Apr 19, 2013
    • 0 Attachment
      The question is how to develop for touch, mouse and gestures in Html5 across all browsers and in all devices?
       
      To understand the background first read this:
      http://www.html5rocks.com/en/mobile/touchandmouse/
       
       
      If you developed in Windows 8 and just want a replacement for MSPointer then use Hand.js on any browser:
      http://handjs.codeplex.com/
       
      If have to use pointer with gesture together, that there is chance that they might conflict, use PointerEvents lib:
      https://github.com/toolkitchen/PointerEvents
       
      Note: In PointerEvents lib you have to enable each element to receive the events.
       
      For supporting multi-touch Gestures use Hammer.js:
      http://eightmedia.github.io/hammer.js/
       
      Now question comes how to test if all this is working if you do not have touch device. There are two ways to test touch on the desktop, I suggest you test on both:
       
      1. Use Visual Studio 2012 Simulator.
      2. Use Chrome
      https://developers.google.com/chrome-developer-tools/docs/mobile-emulation#emulate-touch-events
       
       
      Zia Khan
       
       
    Your message has been successfully submitted and would be delivered to recipients shortly.