i think normal solution would be,
if (Modernizr.touch){
// bind to touchstart, touchmove, etc and watch <code>event.streamId</code>
} else {
// bind to normal click, mousemove, etc
}
with modernizr , coz $browser detect in jquery is deprecated, but the problem is :
The Modernizr.touch test only indicates if the browser supports touch events, which does not necessarily reflect a touchscreen device. For example, Palm Pre / WebOS (touch) phones do not support touch events and thus fail this test.
or something like this:
https://detectmobilebrowsers.com/
and just remove the jquery scripts or supersized DIV with jquery <script>$("#divname").removeClass("blue");</script>