jtrussell / angular-snap.js

AngularJS directive for snap.js
http://jtrussell.github.io/angular-snap.js/
MIT License
700 stars 67 forks source link

Added support for Snap-Dragger Limit Threshold Support #114

Open siddmegadeth opened 8 years ago

siddmegadeth commented 8 years ago

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

jtrussell commented 8 years ago

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

siddmegadeth commented 8 years ago

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

jtrussell commented 8 years ago

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?

siddmegadeth commented 8 years ago

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.

jtrussell commented 8 years ago

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.