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:
parent
8529c0adee
commit
52c2a1dd87
@ -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) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user