2
0
mirror of https://github.com/JannisX11/blockbench.git synced 2025-03-07 16:47:50 +08:00

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() { getHoveredPreview() {
var canvas = $('.preview canvas:hover').get(0) var canvas = $('.preview canvas:hover').get(0);
if (canvas) return canvas.preview return canvas ? canvas.preview : Preview.selected;
}, },
withoutGizmos(cb) { withoutGizmos(cb) {