       guard let tag = sender.view?.tag else {
         return
       }
-      if let currentTimeline = currentTimeline {
-        currentTimeline.container.tag = tag
-      }
+      resizeHandleTag = tag
+
       let diff = CGPoint(x: newCoord.x - prevOffset.x,
                          y: newCoord.y - prevOffset.y)
       var suggestedEventFrame = pendingEvent.frame

    }
    
    if sender.state == .ended {
      let currentTimelineTag = currentTimeline?.container.tag ?? 0
      commitEditing(endGapFix: currentTimelineTag == 1)
    }
  }


        let ytd = yToDate(y: editedEventView.frame.origin.y,
                          timeline: timeline)
        let snapped = timeline.snappingBehavior.nearestDate(to: ytd)
        let x = style.leftInset
        
        var eventFrame = editedEventView.frame
        eventFrame.origin.x = x
        eventFrame.origin.y = timeline.dateToY(snapped) - currentTimeline.container.contentOffset.y

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