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