fix opacity with layers

master
JFH 2021-05-16 17:34:54 +02:00
parent 0f70407b37
commit d98af1489b
1 changed files with 4 additions and 7 deletions

View File

@ -411,14 +411,11 @@ class LayersPanel {
self.editor.svgCanvas.setCurrentLayer(evt.currentTarget.textContent); self.editor.svgCanvas.setCurrentLayer(evt.currentTarget.textContent);
evt.preventDefault(); evt.preventDefault();
}); });
element.addEventListener('mouseup', function(evt) { element.addEventListener('mouseup', (evt) => {
self.toggleHighlightLayer( self.toggleHighlightLayer(evt.currentTarget.textContent);
self.editor.svgCanvas,
evt.currentTarget.textContent
);
}); });
element.addEventListener('mouseout', function(_evt) { element.addEventListener('mouseout', (evt) => {
self.toggleHighlightLayer(self.editor.svgCanvas); self.toggleHighlightLayer();
}); });
}); });
const elements = $id('layerlist').querySelectorAll("td.layervis"); const elements = $id('layerlist').querySelectorAll("td.layervis");