Only update selection styling for full redraws (re: #7706)

This commit is contained in:
Quincy Morgan
2020-06-16 13:14:06 -04:00
parent 24b124e536
commit f53cce783a

View File

@@ -256,7 +256,11 @@ export function modeSelect(context, selectedIDs) {
.on('redone.select', checkSelectedIDs);
context.map()
.on('drawn.select', selectElements)
.on('drawn.select', function(info) {
if (info.full !== false) {
selectElements();
}
})
.on('crossEditableZoom.select', function() {
selectElements();
_breatheBehavior.restartIfNeeded(context.surface());
@@ -343,7 +347,6 @@ export function modeSelect(context, selectedIDs) {
surface.selectAll('.related')
.classed('related', false);
singularParent();
if (_relatedParent) {
surface.selectAll(utilEntitySelector([_relatedParent]))
.classed('related', true);