This simple piece of code works in Chromium but not in Firefox. Why, and what's the best way to disable page interaction while moving the mouse. I'm trying to implement drag and drop, and I want to disable interactions while dragging.
$('body').on('mousemove', function (event) {
event.preventDefault();
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Try to select this text.<br>
In Chromium, you can't, as expected.<br>
In Firefox, you can, as unexpected.