Hello,
I'm using angular-scrolly in a PhoneGap app and it's working quite well 👍
Only one problem. Sometimes when scrolling it happens that the ngClick directive of ngTouch is invoked.
I fixed this for me by inserting
if (self.state.distance.y > 20 || self.state.distance.y < -20) {
e.preventDefault();
}
before https://github.com/ajoslin/angular-scrolly/blob/master/src/services/dragger.js#L280 (line 280)
I'm checking whether the users scrolls more than 20 pixels. I know there has to be a better solution but I'm not very familiar with the angular-scrolly code... :)
Regards,
Andre
Hello,
I'm using
angular-scrollyin a PhoneGap app and it's working quite well 👍Only one problem. Sometimes when scrolling it happens that the
ngClickdirective ofngTouchis invoked.I fixed this for me by inserting
before https://github.com/ajoslin/angular-scrolly/blob/master/src/services/dragger.js#L280 (line 280)
I'm checking whether the users scrolls more than
20pixels. I know there has to be a better solution but I'm not very familiar with theangular-scrollycode... :)Regards,
Andre