Ion-content on-scroll function called when just clicking a list item


#1

Hello Ionickers :slight_smile:

Im developing an app that have a scrollable list of items. Each item has option buttons that i show programmatically clicking on item avatar and I want to hide them or by swiping back or just by scrolling away like default behavior. The problem is that when i click on item’s avatar, css transition is correctly done and option buttons are shown, but shortly after on-scroll event is fired (even if i just clicked the avatar without scrolling) hiding them back. So the final result is like nothing happens clicking on avatar.

I made a codepen showing the issue:

Just by clicking any item the on-scroll event is fired

Codepen


#2

Is there another right way to capture “real” scrolling or should i hack with matching scroll positions to detect effective scrolling?


#3

Opened issue on github: https://github.com/driftyco/ionic/issues/6152