locatePointer: Mark the animation as required

When the accessibility option "Reduce Animation" is turned on, the
accessibility option "Locate Pointer" stops to work. This is because
the animation is not marked as required. Mark it as such.
This commit is contained in:
Alessandro Bono 2023-10-20 22:00:59 +02:00
parent 4b48f861f5
commit 762c0074f3

View file

@ -20,7 +20,7 @@ export class LocatePointer {
return;
if (enabled) {
this._ripples = new Ripples.Ripples(0.5, 0.5, 'ripple-pointer-location');
this._ripples = new Ripples.Ripples(0.5, 0.5, 'ripple-pointer-location', true);
this._ripples.addTo(Main.uiGroup);
} else {
this._ripples.destroy();