 
     private func updateTimePreview(with event: NSEvent) {
         let point = convert(event.locationInWindow, from: nil)
-        guard point.x > Metrics.timePreviewXOffset, point.x < (bounds.width - Metrics.timePreviewXOffset) else {
+        guard point.x > maxTimestampWidth, point.x < (bounds.width - maxTimestampWidth) else {
             timePreviewLayer.animateInvisible()
             return
         }

    // MARK: - Private API

    private var annotationWindowController: PUIAnnotationWindowController?

    weak var viewDelegate: PUITimelineViewDelegate?


    public var mediaDuration: Double = 0 {
        didSet {
            needsLayout = true

            let widestTimestampString = attributedString(for: mediaDuration, ofSize: Metrics.timePreviewTextSize)
            maxTimestampWidth = widestTimestampString.size().width + Metrics.timePreviewXOffset
        }
    }

