resumeSelectLineOffset method

dynamic resumeSelectLineOffset()

handle select line

Implementation

resumeSelectLineOffset() {
  isWait = true;
  var waitSecond = 0;
  waitTimer?.cancel();
  waitTimer = new Timer.periodic(Duration(milliseconds: 100), (timer) {
    waitSecond += 100;
    if (waitSecond == 400) {
      realUpdateOffset(widget.model?.computeScroll(
              lyricPaint.centerLyricIndex,
              lyricPaint.playingIndex,
              widget.ui) ??
          0);
      return;
    }
    if (waitSecond == 3000) {
      disposeSelectLineDelay();
      setSelectLine(false);
      scrollToPlayLine();
    }
  });
}