Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laggy when the value is nearing the max #6

Open
khaled-0 opened this issue Nov 13, 2024 · 1 comment
Open

Laggy when the value is nearing the max #6

khaled-0 opened this issue Nov 13, 2024 · 1 comment

Comments

@khaled-0
Copy link

It causes lag maybe due to amount of amplitute

  return SquigglySlider(
      useLineThumb: true,
      squiggleAmplitude: widget.playing ? 4 : 0,
      squiggleWavelength: 8,
      squiggleSpeed: 0.08,
      secondaryTrackValue: min(
        widget.duration.inMilliseconds,
        widget.buffering ? 0 : widget.bufferedPosition.inMilliseconds,
      ).toDouble(),
      max: widget.duration.inMilliseconds.toDouble(),
      value: max(
        _dragValue ??
            min(
              widget.position.inMilliseconds,
              widget.duration.inMilliseconds,
            ).toDouble(),
        Duration.zero.inMilliseconds.toDouble(),
      ),
@HannesGitH
Copy link
Owner

huh, interesting

thanks for reporting! I'll look into it when i find some spare time :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants