   }
 
   private func commitEditing() {
-    if let currentTimeline = pagingViewController.viewControllers?.first as? TimelineContainerController {
+    if let currentTimeline = currentTimeline {
       let timeline = currentTimeline.timeline
       timeline.accentedDate = nil
       setNeedsDisplay()

        return
      }
      
      let diff = CGPoint(x: newCoord.x - prevOffset.x, y: newCoord.y - prevOffset.y)
      
      if tag == 0 { // Top handle
        pendingEvent.frame.origin.y += diff.y

  }

  private func update(descriptor: EventDescriptor, with eventView: EventView) {
    if let currentTimeline = currentTimeline {
      let timeline = currentTimeline.timeline
      let eventFrame = eventView.frame
      let converted = convert(eventFrame, to: timeline)
