This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
swipe gesture/event cancels mouse drag event in chrome #8582
Open
Description
I'm having trouble with the "swipe" event(s) implemented by JQuery Mobile. As a general rule, just listening to an event should not alter the user experience. By this rule, there would seem to be a bug in JQM & Chrome.
In firefox and IE, it works as expected, however in Chrome the mouse drag event seems to be terminated when the swipe event is triggered.
The following eg. is demonstrated in this jsfiddle
<input type="email" value="drag-select@this-text.com" />
<script>
$(document).ready(function() {
$(document).on("swipe", function(evt) {
console.log("swiped " + new Date().getTime());
});
console.log("ready");
});
</script>
if you drag your mouse over the text in the input in order to select it, only 2-5 characters can be selected.