RyanMullins / angular-hammer

Hammer.js v2 support for AngularJS
http://ryanmullins.github.io/angular-hammer/
MIT License
188 stars 55 forks source link

Dynamic hm-manager-options #59

Open JosephDAM opened 9 years ago

JosephDAM commented 9 years ago

I wanted to know if there is a way to make this work: on element: hm-manager-options='{"enable":panFlag}'

on js: $scope.panFlag = false;

JosephDAM commented 9 years ago

I'm trying to have vertical scroll and drag&drop functionality on mobile. Is it possible? My approach for now is to "enable" the hm-pan directive dynamically, triggered by hm-press with a 300 ms timer. But im getting parse errors whenever I don't put directly "false" or "true" in hm-manager-options='{"enable":panFlag}'

bronielsen commented 9 years ago

Did you find a solution to this? Looking for the same functionality.

davizuku commented 9 years ago

May be this can help you: https://github.com/RyanMullins/angular-hammer/issues/61