Fix issue with painting on touch devices

This commit is contained in:
JannisX11 2020-10-28 11:33:40 +01:00
parent 8529c0adee
commit 52c2a1dd87

View File

@ -72,8 +72,8 @@ const Canvas = {
}
},
getHoveredPreview() {
var canvas = $('.preview canvas:hover').get(0)
if (canvas) return canvas.preview
var canvas = $('.preview canvas:hover').get(0);
return canvas ? canvas.preview : Preview.selected;
},
withoutGizmos(cb) {