Open siddmegadeth opened 8 years ago
Sorry, I'm not entirely sure what you're asking. Do you want to add that directive here?
if possible please add this. it will help a lot of people with threshold drag
It's a nice feature but I'm really not looking to support more than what is provided by Snap.js. Is there a reason we need this in angular-snap itself instead of pulling it in independently?
Hi,
Thanks for replying. I am building an App which requires a slide in menu from either side and Snap.js was the best fit especially with Angularjs. But there was one problem staement which i wanted to cover.
if i have a main view with list which in turn are also draggable on either side then there was a need to define a threshold so that on list item drag the Snap.js side menu does not get dragged and get opened. If there were any other way to achieve i was not able to achieve.
Please suggest.
If you want snap dragging completely disabled on certain lists you can add data-snap-ignore="true"
to those items and the user won't be able to open any drawers by dragging over them.
I appreciate your use case but I do feel that this would be a more appropriate feature to add to Snap.js than here. I'm happy to provide a link to your addon in the README though.
https://github.com/siddmegadeth/Snap.js--EdgeLimit