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);
evt.preventDefault();
});
element.addEventListener('mouseup', function(evt) {
self.toggleHighlightLayer(
self.editor.svgCanvas,
evt.currentTarget.textContent
);
element.addEventListener('mouseup', (evt) => {
self.toggleHighlightLayer(evt.currentTarget.textContent);
});
element.addEventListener('mouseout', function(_evt) {
self.toggleHighlightLayer(self.editor.svgCanvas);
element.addEventListener('mouseout', (evt) => {
self.toggleHighlightLayer();
});
});
const elements = $id('layerlist').querySelectorAll("td.layervis");