Skip to content

LongPress improvements and bug fix

Compare
Choose a tag to compare
@zjfjack zjfjack released this 02 May 07:33
· 83 commits to master since this release
  1. Improve the Move long press position relative to the long press view, for now, it will be the same as you originally press. (Same as Apple Calendar)

  2. Fix a serious bug caused by CollectionView Reusability.

    • The CurrentMovingCell used before will be replaced when that reference is reused. Which could cause the editing reference totally wrong.
    • Also, with reusing, the editing cell will be refreshed if it has been reused, which means when you scroll back to that page, this event will be there instead of hidden or translucent.
    • In order to fix that problem, in Move longPress, the custom CollectionViewCell has to inherit from JZBaseEventCell in order to get the JZBaseEvent and find the original editing cell because of the reusability of UICollectionView