Merge pull request #9960 from ahocevar/lazy-event-calculations

Always dispatch pointermove events, but calculate event pixel and coordinate lazily
This commit is contained in:
Andreas Hocevar
2019-09-24 16:11:17 +02:00
committed by GitHub
4 changed files with 41 additions and 25 deletions
-2
View File
@@ -212,7 +212,6 @@ class RasterSource extends ImageSource {
animate: false,
coordinateToPixelTransform: createTransform(),
extent: null,
focus: null,
index: 0,
layerIndex: 0,
layerStatesArray: getLayerStatesArray(this.layers_),
@@ -286,7 +285,6 @@ class RasterSource extends ImageSource {
const center = getCenter(extent);
frameState.extent = extent.slice();
frameState.focus = center;
frameState.size[0] = Math.round(getWidth(extent) / resolution);
frameState.size[1] = Math.round(getHeight(extent) / resolution);
frameState.time = Infinity;