Only trigger change event if animating a tile transition
This commit is contained in:
@@ -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_) {
|
||||||
|
|||||||
Reference in New Issue
Block a user