We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to have an event that fires only when kinetic has been dragged?
Currently if I have:
$('.balls__bar').kinetic({ cursor: 'default', x: true, y: false, moved: function(){ ipc.send('projector', { func: 'scrollBallBar', params: [$('.stage-inner').width(), $('.balls__bar').scrollLeft()] }); } });
The moved event will fire if .balls__bar is scrolled by another means. I only want to catch kinetic movement by dragging!
moved
.balls__bar
The text was updated successfully, but these errors were encountered:
You could check this.mouseDown === true
this.mouseDown === true
$('.balls__bar').kinetic({ cursor: 'default', x: true, y: false, moved: function(){ if (this.mouseDown) { ipc.send('projector', { func: 'scrollBallBar', params: [$('.stage-inner').width(), $('.balls__bar').scrollLeft()] }); } } });
Sorry, something went wrong.
No branches or pull requests
Is it possible to have an event that fires only when kinetic has been dragged?
Currently if I have:
The
moved
event will fire if.balls__bar
is scrolled by another means. I only want to catch kinetic movement by dragging!The text was updated successfully, but these errors were encountered: