[Extremely Important] Touch And Mouse: Together Again For The First Time
- 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:
If you developed in Windows 8 and just want a replacement for MSPointer then use Hand.js on any browser:
If have to use pointer with gesture together, that there is chance that they might conflict, use PointerEvents lib:
Note: In PointerEvents lib you have to enable each element to receive the events.
For supporting multi-touch Gestures use 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