From 6988dc4d7b8010fdbe4be6ea9289cf208b107d29 Mon Sep 17 00:00:00 2001 From: cuixiping Date: Tue, 7 Jan 2020 17:52:42 +0800 Subject: [PATCH] Fix: let the checkerboard background style has pointer-events:none --- editor/svgcanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 3f5fe99d..77c860dd 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -7205,7 +7205,7 @@ this.setBackground = function (color, url) { }); const div = document.createElement('div'); assignAttributes(div, { - style: 'width:100%;height:100%;background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);' + style: 'pointer-events:none;width:100%;height:100%;background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);' }); bgPattern.appendChild(div); bg.append(bgPattern);