Open nephon opened 9 years ago
Yes me too here, i have mulitple crop in one page the first one working but the second one images still move while mouse move, where is the author
did you solved this issue ? Thanks
@sidaurukfreddy @nephon I also have this issue, and it has been resolved. see imgMouseUp sometimes doesn't work. the reason may be related with this question event.stopPropagation() and event.preventDefault().
Instead of having "mousemove" Event listen for all the time el.on('mousedown', imgMouseDown); //el.on('mousemove', imgMouseMove); $(window).on('mouseup', imgMouseUp);
/***/ Adjustment as below imgMouseDown = function(e) { el.on('mousemove', imgMouseMove); }
imgMouseUp = function(e) { el.off('mousemove'); }
/***/ I have also change from "bind" to "on"