left-swipe-action icon indicating copy to clipboard operation
left-swipe-action copied to clipboard

No more scroll

Open spirylics opened this issue 9 years ago • 4 comments

We can't scroll with a long list.

Thanks for this job !

spirylics avatar Nov 24 '15 09:11 spirylics

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.

ghost avatar Feb 29 '16 23:02 ghost

+1! The problem seems to be the component capturing the drag event, not allowing the full page to catch it and do the scrolling

beeva-miguelcollado avatar Apr 13 '16 14:04 beeva-miguelcollado

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

beeva-miguelcollado avatar Apr 14 '16 09:04 beeva-miguelcollado

Thanks to @beeva-miguelcollado , I published a new version v0.2.2.

tejitak avatar Apr 14 '16 11:04 tejitak