                    }
                     prevPosition = pos
                 }
-                
             }
         }
     }

    var prevPlayTime: Double = -1
    var prevPlayTimeDate: Date?
    var prevPosition: LyricsPosition?
    
    @IBOutlet weak var window: NSPanel!
    @IBOutlet weak var scrollView: NSScrollView!

                    prevPlayTimeDate = Date()
                }
                let pos = lyrics.position(time: time)
                let posScroll = lyrics.position(time: time + AnimationDuration / 2)
                if prevPositionScroll == nil || (prevPositionScroll != nil && posScroll.line != prevPositionScroll!.line) {
                    scroll(toLine: posScroll.line)
                    prevPositionScroll = posScroll
                }
                if prevPosition == nil || (prevPosition != nil && pos != prevPosition!) {
                    let marking = lyrics.marking(position: pos)
                    lyricsTextView.textStorage?.addAttributes([NSForegroundColorAttributeName: NSColor.gray], range: marking.finishedLines)
                    lyricsTextView.textStorage?.addAttributes([NSForegroundColorAttributeName: NSColor.orange], range: marking.currentLine)
