mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Can still update viewer rotation just not redraw
This commit is contained in:
@@ -140,10 +140,6 @@ export function svgStreetside(projection, context, dispatch) {
|
||||
|
||||
|
||||
function viewerChanged() {
|
||||
// skip this if the map is currently transformed
|
||||
// e.g. during drags or easing.
|
||||
if (context.map().isTransformed()) return;
|
||||
|
||||
var service = getService();
|
||||
if (!service) return;
|
||||
|
||||
@@ -152,6 +148,11 @@ export function svgStreetside(projection, context, dispatch) {
|
||||
|
||||
// update viewfield rotation
|
||||
_viewerYaw = viewer.getYaw();
|
||||
|
||||
// avoid updating if the map is currently transformed
|
||||
// e.g. during drags or easing.
|
||||
if (context.map().isTransformed()) return;
|
||||
|
||||
layer.selectAll('.viewfield-group.selected')
|
||||
.attr('transform', transform);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user