twinssbc / Ionic2-Calendar

A calendar component based on Ionic framework
https://ionic-calendar-demo.stackblitz.io
MIT License
387 stars 197 forks source link

Ionic 6 Angular 13 swiping problem #663

Closed YSFKBDY closed 11 months ago

YSFKBDY commented 11 months ago

I've installed the calendar to my App, and working fine. But, when I swipe to next month, (let's say current month is october), calendar shows current month's days every third swipe, no matter what month we are at until I stop dragging/touching. When I stop dragging/touching, days are come back to normal and shows days of month you at. Same thing occurs backwards, too. It's really annoying.

Current month: image

While swiping to right (you can see days of october, instead of january): image

After swiping complete (Days back to normal): image

twinssbc commented 11 months ago

Yes, this is the behavior of old slider component version, it uses 3 looped slides to keep updating for the previous, current, next month. The old version caches the prev and next slide, that's why in the middle of the swiping, it won't be updated, only when the swiping is over. You could upgrade to the latest version, that behavior is eliminated.

Version 2.1.x depends on Ionic (>=7.0.0), Angular (>=16.0.0) and Swiper (>=10.1.0).

YSFKBDY commented 11 months ago

We are using Ionic 6, so I can't upgrade to the latest version. Thank you for your explanation.