         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)
+        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() {

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


    }
  }

  private func commitEditing() {
    if let currentTimeline = currentTimeline {
      let timeline = currentTimeline.timeline
      timeline.accentedDate = nil
