-
Notifications
You must be signed in to change notification settings - Fork 85
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
Sudden stop after mouseup #94
Comments
@freyhubert |
@tsaikd Mac OSX 10.10.5 Yosemite, Firefox 44.0.2 |
It's just an example code in README.
|
@tsaikd Of course, but I need to filter mouse event. I'm using Kinetic above product table so I need to have the ability to click on child elements inside wrapper. |
@freyhubert <div id="wrapper">
<div class="kinetic-enable-this-element">foo</div>
<div class="kinetic-disable-this-element">bar</div>
</div> $('#wrapper').kinetic({
filterTarget: function(target, e){
return $(target).hasClass("kinetic-enable-this-element");
}
}); |
@tsaikd Thank you, this solved the problem |
Firstly, thanks for this great plugin. I'm facing an issue while using filterTrigger method. There is no deceleration after mouseup, scroll stops immediatelly. If I comment this method out, everything works fine, except preventing child elements events (of course).
ul.kinetic({ filterTarget: function(target, e){ if (!/down|start/.test(e.type)){ return !(/area|a|input/i.test(target.tagName)); } } });
The text was updated successfully, but these errors were encountered: