Merge pull request #12875 from tschaub/raster-loop

Only trigger change event if animating a tile transition
This commit is contained in:
Tim Schaub
2021-10-12 13:27:53 -06:00
committed by GitHub

View File

@@ -862,7 +862,9 @@ class RasterSource extends ImageSource {
this.dispatchEvent(
new RasterSourceEvent(RasterEventType.AFTEROPERATIONS, frameState, data)
);
requestAnimationFrame(this.changed.bind(this));
if (frameState.animate) {
requestAnimationFrame(this.changed.bind(this));
}
}
disposeInternal() {