left-swipe-action
left-swipe-action copied to clipboard
No more scroll
We can't scroll with a long list.
Thanks for this job !
Up ! Agree with you, i use the left-swipe-action in notification panel. The elements are in a paper-header-panel. I can scroll on chrome (computer). I can't scroll on chrome (mobile) with fingers.
+1! The problem seems to be the component capturing the drag event, not allowing the full page to catch it and do the scrolling
This issue can be resolved by using Polymer's setScrollDirection. Here's a snippet from my use case:
fixScroll: function() {
var nodes = Polymer.dom(this.root).querySelectorAll('left-swipe-action');
var i = 0;
for(i; i < nodes.length; i++) {
var node = nodes[i];
node.setScrollDirection('all',Polymer.dom(node.root).querySelector('#content'));
}
}
Edit: I just forked this repo with a fix within the very component to avoid having to use the external solution I described above. While the pr resolves, feel free to use my fork: https://github.com/beeva-miguelcollado/left-swipe-action
Thanks to @beeva-miguelcollado , I published a new version v0.2.2.