mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-01-30 15:42:42 +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() {
|
||||
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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user