ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

ion-datetime Scroll momentum not working on iOS

Open huysamen opened this issue 10 years ago • 9 comments

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

huysamen avatar Sep 16 '16 08:09 huysamen

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

Loriot-n avatar Sep 16 '16 12:09 Loriot-n

Duplicate-ish - https://github.com/driftyco/ionic/issues/6613

sssemil avatar Sep 20 '16 08:09 sssemil

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

stschindler avatar Sep 28 '16 14:09 stschindler

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.

scottgeye avatar Oct 19 '16 19:10 scottgeye

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

pantonis avatar Oct 22 '16 10:10 pantonis

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.

scottgeye avatar Oct 23 '16 03:10 scottgeye

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!

manucorporat avatar Oct 23 '16 11:10 manucorporat

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.

tobika avatar Mar 15 '17 17:03 tobika

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[bot] avatar Sep 03 '18 17:09 ionitron-bot[bot]