1.8.4 mobile hotfix

This commit is contained in:
slweeb 2023-07-11 13:14:07 -04:00
parent 4a675a126b
commit 444d8c1823
1 changed files with 2 additions and 1 deletions

View File

@ -10690,7 +10690,8 @@
else {
mouseType = "left";
}
if (e.button === 0 && placingImage) {
if ((e.button === 0 || e.touches) && placingImage) {
if (e.touches) { mouseMove(e); }
// downscale the <img to mouseSize x mouseSize and draw it
var canvas = document.createElement("canvas");
// set width or height proportional to mouseSize