resetDragging method

void resetDragging()

Implementation

void resetDragging() {
  _lyricPainter!.currentLyricIndex =
      findLyricIndexByDuration(widget.controller.progress, lyrics);

  widget.controller.previousRowOffset =
      -(widget.controller.draggingOffset ?? 0);
  animationScrollY(
      _lyricPainter!.currentLyricIndex, widget.controller.vsync!);
  _lyricPainter!.draggingLine = null;
  widget.controller.isDragging = false;
}