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-datetime Scroll momentum not working on iOS #8096

Closed
huysamen opened this issue Sep 16, 2016 · 9 comments
Closed

ion-datetime Scroll momentum not working on iOS #8096

huysamen opened this issue Sep 16, 2016 · 9 comments
Assignees

Comments

@huysamen
Copy link

huysamen commented Sep 16, 2016

Short description of the problem:

Momentum scrolling on the ion-datetime component does not work on a physical iOS device. It works perfectly in the browser and in the simulator.

It stutters and then very slowly stops on a date. If you tap, rather than scroll, then the animation is smooth and transitions to the date you tapped on.

What behavior are you expecting?

When using the ion-datetime component, when scrolling to select the dates on a physical iOS device, momentum scrolling should work.

Steps to reproduce:

  1. Add ion-datetime component to any page
  2. Run app on physical iOS device
  3. Try to use momentum scrolling

Which Ionic Version? 1.x or 2.x
Ionic 2 beta 11

@Loriot-n
Copy link

Same issue on Android v6.0.1, the scroll is very slow and stutters

@sssemil
Copy link

sssemil commented Sep 20, 2016

Duplicate-ish - #6613

@stschindler
Copy link

I'm also having this issue. Fast in desktop browser, slow on Android 6.0, HTC One M8.

@scottgeye
Copy link

scottgeye commented Oct 19, 2016

Same issue on iOS with RC1. I have pickers in two different parts of my app. One simple form where the picker is completely smooth and a different complex page (lots of DOM manipulation) where the performance problem happens.

Not sure if it helps, but in doing a little profiling, the touch move event that fires from the picker seems to be taking about 3x as long to execute between the two cases.

The weird thing is this problem doesn't exist if I open my app directly in mobile safari. Not sure exactly what's going on here, but it's definitely making my app completely unusable on iOS.

@pantonis
Copy link

pantonis commented Oct 22, 2016

Having the same issue on Android 6 LG4 which is a high end phone. Very laggy

@scottgeye
Copy link

I was able to solve my issues by cutting down on the amount of processing going on during every angular change detection cycle. I was watching several properties from one of my component templates that were doing way more work than they should of. Some simple caching did the trick.

On the ionic side, if there's a way to cut down on the change detection during picker touch move events, that make might help mitigate the issue in the first place.

@manucorporat
Copy link
Contributor

manucorporat commented Oct 23, 2016

Improving the performance of picker and ion-datetime is in my roadmap, it will be addressed once all the critical known bugs (mostly navigation bugs) are fixed in ionic. We are close :)

There are a lot of room for improvements!

@tobika
Copy link
Contributor

tobika commented Mar 15, 2017

I came by this performance problem aswell today on Android and made an interesting discovery.

For me its only really slow when I add the year to the pickerFormat. Without it no slow down is encountered. Hope this helps.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 3, 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 3, 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

9 participants