Only trigger change event if animating a tile transition

This commit is contained in:
Tim Schaub
2021-10-10 13:03:09 -06:00
parent c0009d5985
commit 60790fea18

View File

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