Disable dragging on CustomCellProviding
MaorS opened this issue · 5 comments
Are you talking about the scrubbing that makes the selection follow your finger?
Yes, after I drag in the calendar the gray circle shows the selected day.
then when I click on a different day it select a random day and paint it gray
Ah, I've seen that. It's a byproduct of cell recycling. You need to manually set each cell's background color when customizing.
What's happening is that as you scrub, the cell under your "finger" (the cursor) is being selected. When you finish the selection, the calendar view updates the selection, and the internal collection view recycles all of the cells.
If you don't set the color on every cell, the last highlighted one is going to stay highlighted, and show up somewhere, wherever the collection view puts it. The calendar view doesn't handle this automatically, because it can't really tell what your default appearance is when customizing.
Does this help point you in the right direction?
Yes, thanks!
Awesome, so is it safe to close this issue?