angular-snap.js icon indicating copy to clipboard operation
angular-snap.js copied to clipboard

Added support for Snap-Dragger Limit Threshold Support

Open siddmegadeth opened this issue 8 years ago • 5 comments

https://github.com/siddmegadeth/Snap.js--EdgeLimit

siddmegadeth avatar Aug 13 '16 10:08 siddmegadeth

Sorry, I'm not entirely sure what you're asking. Do you want to add that directive here?

jtrussell avatar Aug 17 '16 20:08 jtrussell

if possible please add this. it will help a lot of people with threshold drag

siddmegadeth avatar Aug 17 '16 21:08 siddmegadeth

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?

jtrussell avatar Aug 18 '16 13:08 jtrussell

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.

siddmegadeth avatar Aug 20 '16 14:08 siddmegadeth

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.

jtrussell avatar Aug 21 '16 19:08 jtrussell