Closed quadrupleslap closed 9 years ago
Although I suspect preventDefault in the options might fix that. =) Edit: Nope, nevermind. =\
Do you have an example for this issue?
Here's what I have, but what happens is if preventDefault isn't specified, no scrolling is possible, and if it is specified as false, then the swipe event never gets fired.
<ul class="entries">
<li ng-repeat="entry in entries | reverse | orderBy: '!!complete'"
ng-class="{complete: entry.complete}" class="entry"
hm-recognizer-options='{"type":"swiperight", "threshold":10, "preventDefault":false}'
hm-swiperight="editEntry(entry, {complete: !entry.complete})"
animated-reorder>
<button class="glyphicon glyphicon-ok" ng-click="editEntry(entry, {complete: !entry.complete})" ink-ripple></button>
<p ng-bind="entry.title || entry.input"></p>
</li>
</ul>
I can't reproduce this.
Created a similar structure to yours (without specifying preventDefault) and the ul scrolls fine and the swiperight event is also firing fine.
If you're sure it's a library bug, can you provide a plunker or similar with a runnable/reproducible issue.
Whoops, sorry, it's my fault. I was doing something really stupid with overflow-scrolling.
I don't know if this is intended behaviour or not, but when I use the hm-swipeleft or hm-swiperight directive on an li, I can't scroll the list by dragging that li normally.