                        animations: animateEventSnap,
                        completion: completionHandler(_:))
       }
-
+      
+      resizeHandleTag = nil
       prevOffset = .zero
     }
   }

        let ytd = yToDate(y: editedEventView.frame.origin.y,
                          timeline: timeline)
        let snapped = timeline.snappingBehavior.nearestDate(to: ytd)

        let calendarWidth = timeline.calendarWidth
        let x = style.leftInset

        var eventFrame = editedEventView.frame
        eventFrame.origin.x = x
        eventFrame.origin.y = timeline.dateToY(snapped) - currentTimeline.container.contentOffset.y

        if (endGapFix) {
          let ytd2 = yToDate(y: editedEventView.frame.origin.y + editedEventView.frame.size.height, timeline: timeline)
          let snapped2 = timeline.snappingBehavior.nearestDate(to: ytd2)
          eventFrame.size.height = timeline.dateToY(snapped2) - timeline.dateToY(snapped)
        }
        
        func animateEventSnap() {

      guard let tag = sender.view?.tag else {
        return
      }
      resizeHandleTag = tag

      let diff = CGPoint(x: newCoord.x - prevOffset.x,
                         y: newCoord.y - prevOffset.y)
      var suggestedEventFrame = pendingEvent.frame
