Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
etipirev opened this issue Apr 13, 2016 · 8 comments
Closed

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

etipirev opened this issue Apr 13, 2016 · 8 comments

Comments

@etipirev
Copy link

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 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.

Just by clicking any item the on-scroll event is fired
Codepen: http://codepen.io/etipirev/pen/aNYNpy?editors=1111

Forum: https://forum.ionicframework.com/t/ion-content-on-scroll-function-called-when-just-clicking-a-list-item/49186

System info:
Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
OS:
Node Version: v5.7.0

@Ionitron Ionitron added the v1 label Apr 13, 2016
@jgw96
Copy link
Contributor

jgw96 commented Apr 13, 2016

Thanks for the codepen! I was able to reproduce this issue and will be looking farther into it.

@jgw96
Copy link
Contributor

jgw96 commented Apr 13, 2016

Hello! Thanks for opening an issue with us! So I tested this issue using your codepen and could not seem to reproduce the issue. Are the exact steps to repro the issue just to click on a list item?

@jgw96 jgw96 added the needs: reply the issue needs a response from the user label Apr 13, 2016
@etipirev
Copy link
Author

Yes, clicking on list item fires on-scroll event that outputs "scrolling" in console

Actually i further discovered that on-scroll-complete is fired too, even before on-scroll callback.
It doesnt seems like coherent behavior, i updated my codepen

@Ionitron Ionitron removed the needs: reply the issue needs a response from the user label Apr 13, 2016
@jgw96
Copy link
Contributor

jgw96 commented Apr 13, 2016

@etipirev Ok, i was able to reproduce now with your codepen, dont know why i couldn't before haha. So have you been able to reproduce this on a device?

@etipirev
Copy link
Author

Yes, it persist in chrome browser as well as on android devices, not tested on ios, however seems platform-agnostic

@jgw96
Copy link
Contributor

jgw96 commented Apr 13, 2016

@etipirev Alright thanks for all the info!

@jgw96
Copy link
Contributor

jgw96 commented Jan 13, 2017

This issue was moved to ionic-team/ionic-v1#145

@jgw96 jgw96 closed this as completed Jan 13, 2017
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 4, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants