I know this is more likely a browser issue but this is a nice improvment that could be acheived: could we reset the state or retest the mouse down states when mouse is out of the content?
you can reproduce on https://codepen.io/jakob-e/pen/wBmgYb by clicking the content to scroll and release mouse in the editor area since the preview is in a iframe
maybe somthing using code such as
document.body.addEventListener('mouseleave', function() {
alert('left body we must recalculate on next mousemove if we still press the mouse button');
})
I know this is more likely a browser issue but this is a nice improvment that could be acheived: could we reset the state or retest the mouse down states when mouse is out of the content?
you can reproduce on https://codepen.io/jakob-e/pen/wBmgYb by clicking the content to scroll and release mouse in the editor area since the preview is in a iframe
maybe somthing using code such as
would help fixing this