On a touch laptop, jQuery touch events only work in the Google Chrome browser and do not work with other browsers.
For example: touchmoveevent
FIDDLE DEMO
Code snippets:
$(function() {
$("div").on("touchmove", moveE);
function moveE(e) {
console.log(e.type);
}
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div style="height:200px; width:200px;background:red;">
TEST
</div>
Run codeHide resultCan anyone share information about this?
source
share