I have a page the allows a user to create a signature using a touch screen or mouse. The touch screen works fine in Chrome but not in IE. Most of the time IE does not 'detect' that I am using a touch screen. We detect touch like this:
if ('ontouchstart' in window == false){
// rest of code
}
The canvas element looks like this:
<canvas id="paint" style="border: solid; background-color: White; cursor: pointer;"
runat="server"></canvas>
Is there a better approach to allow users to add a signature on a touch screen? I am looking for something that is HTML5 compliant and will work reliably on IE.