Merge pull request #12875 from tschaub/raster-loop

Only trigger change event if animating a tile transition
This commit is contained in:
Tim Schaub authored and GitHub committed 2021-10-12 13:27:53 -06:00
commit 5b4c682f2a
1 file changed
+3 -1
+3 -1
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() {