Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on Mouse Up, sometimes the Image still move while Mouse move #19

Open
nephon opened this issue Oct 4, 2015 · 3 comments
Open

on Mouse Up, sometimes the Image still move while Mouse move #19

nephon opened this issue Oct 4, 2015 · 3 comments

Comments

@nephon
Copy link

nephon commented Oct 4, 2015

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"

@sidaurukfreddy
Copy link

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

@sidaurukfreddy
Copy link

did you solved this issue ? Thanks

@2van
Copy link

2van commented Nov 3, 2016

@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().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants