twinssbc / Ionic2-Calendar

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

using two finger swipe on dayview #485

Open tarunpahuja1980 opened 4 years ago

tarunpahuja1980 commented 4 years ago

In the day view, if i use two finger swap, the calendar acts up totally. It keeps on swiping but it doesn't change the date on the header while swipping

Anything which can be done with it ?

twinssbc commented 4 years ago

@tarunpahuja1980 Sorry, I'm not quite clear how to reproduce this behavior. Is it possible you could provide a video? Is it possible your finger gesture is recognized as another gesture other than swipe?

DGeoWils commented 7 months ago

I added a change detection call to fix this issue in my install. When pressing previous/next buttons everything worked fine, but when swiping through the calendar the title would not change until pressing a date on the calendar. Days were also not being marked as disabled on swipe without this addition.

onViewTitleChanged(title: string) {
    this.viewTitle = title;
    // Need this in here because swipes are not causing change detection to run for some dang reason
    this.changeDetection.detectChanges()
}