JTAppleCalendar icon indicating copy to clipboard operation
JTAppleCalendar copied to clipboard

calendar(_:didScrollToDateSegmentWith:) called in error

Open joeljfischer opened this issue 6 years ago • 4 comments

(Required) Version Number: 8.0.1

Description

On the first visible month, tapping any cell calls calendar(_:didScrollToDateSegmentWith:), but tapping a different month's cell doesn't call it. It appears that scrollViewDidEndDecelerating is called internally in those cases.

This causes issues because i'm trying to use calendar(_:didScrollToDateSegmentWith:) to select the first cell of a different month after a scroll.

Steps To Reproduce

  1. Setup a month calendar view
  2. Setup the calendar(_:didScrollToDateSegmentWith:) delegate method.
  3. Select a different day cell.

Expected Behavior

calendar(_:didScrollToDateSegmentWith:) is not called unless the calendar changes months.

Additional Context

n/a

joeljfischer avatar Aug 27 '19 20:08 joeljfischer

hmm will take a look

patchthecode avatar Aug 27 '19 23:08 patchthecode

Any update?

JoNilsson avatar Oct 19 '19 04:10 JoNilsson

Will take a look today. This one slipped through the cracks

patchthecode avatar Oct 19 '19 07:10 patchthecode

ok. finally have time to look at this today. Can any one of you provide me with your viewDidLoad function?z

I want to see if any of you call the scrollToDate function in combination with other things.

patchthecode avatar Oct 19 '19 15:10 patchthecode