Browse Source

fix: laser pointer trail disappearing on pointerup (#9413) (#9427)

* Fix laser pointer trail disappearing on pointerup (#9413)

Previously, the laser pointer trail would disappear as soon as the pointerup event was triggered. This fix delays the trail removal to ensure it persists for a smoother visual experience.

Fixes #9413.

* Remove extra blank lines

Minor formatting cleanup. No functional changes.
pull/9443/head
CharitSinghChauhan 8 months ago committed by GitHub
parent
commit
a18b139a60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      packages/excalidraw/animated-trail.ts

1
packages/excalidraw/animated-trail.ts

@ -129,7 +129,6 @@ export class AnimatedTrail implements Trail { @@ -129,7 +129,6 @@ export class AnimatedTrail implements Trail {
}
private update() {
this.pastTrails = [];
this.start();
if (this.trailAnimation) {
this.trailAnimation.setAttribute("begin", "indefinite");

Loading…
Cancel
Save