   }
 
   private func update(descriptor: EventDescriptor, with eventView: EventView) {
-    if let currentTimeline = pagingViewController.viewControllers?.first as? TimelineContainerController {
+    if let currentTimeline = currentTimeline {
       let timeline = currentTimeline.timeline
       let eventFrame = eventView.frame
       let converted = convert(eventFrame, to: timeline)

  public weak var delegate: TimelinePagerViewDelegate?

  public var calendar: Calendar = Calendar.autoupdatingCurrent

  public var timelineScrollOffset: CGPoint {
    // Any view is fine as they are all synchronized
    let offset = (pagingViewController.viewControllers?.first as? TimelineContainerController)?.container.contentOffset
    return offset ?? CGPoint()
  }

  open var autoScrollToFirstEvent = false

  }

  private func accentDateForPendingEvent() {
    if let currentTimeline = currentTimeline {
      let timeline = currentTimeline.timeline
      let converted = timeline.convert(CGPoint.zero, from: pendingEvent)
      let date = timeline.yToDate(converted.y)
