iron-list scroll interaction with child element tap

179 views
Skip to first unread message

Jim Trainor

unread,
Jul 28, 2015, 7:48:07 AM7/28/15
to Polymer
I created an iron-list that has a paper-ripple, with a tap event handler, on each child list element. On desktop browsers the scroll action and tap actions are distinct so I can scroll the list without causing ripples and tap events on list items.  On touch devices I cannot scroll the list without also triggering ripple animations and tap events on the list items at the point where the scroll gesture starts on the iron-list. 

The tap event on the list element is undesirable when the touch was for the purpose of scrolling the list (i.e. was actually a swipe).

I don't have much experience with these sort of issues and I'm not sure if this something that needs to be improved in Polymer or if this is something that I sort out in my own application. Anyone have any thoughts?





Emmanuel Garcia

unread,
Jul 29, 2015, 1:35:58 PM7/29/15
to Polymer, jim.train...@gmail.com, Daniel Freedman, Frankie Fu
Hey Jim,

It sounds like an issue, I can repro this issue.  What do you think Dan? 

Daniel Freedman

unread,
Jul 29, 2015, 1:47:06 PM7/29/15
to Emmanuel Garcia, Polymer, jim.train...@gmail.com, Frankie Fu
This is fixed in master with https://github.com/Polymer/polymer/pull/2134, and will be released with the next version of Polymer.

Daniel Freedman

unread,
Jul 29, 2015, 1:50:40 PM7/29/15
to Emmanuel Garcia, Polymer, jim.train...@gmail.com, Frankie Fu
Oh, this might be seperate, since that PR is for the track gesture.

You can disable all gestures on vertical scrollable areas by using this API: element.setScrollDirection('y'), and horizontal with setScrollDirection('x')
Without that, I can't tell if your touches are for scrolling or gestures.

samuel....@konga.com

unread,
Oct 11, 2016, 6:37:28 AM10/11/16
to Polymer, egar...@google.com, jim.train...@gmail.com, f...@google.com
Hello,

Has this issue been fixed yet? Currently having this same issue.
Reply all
Reply to author
Forward
0 new messages