mobile, canvas size

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-02-28 15:30:46 +08:00
parent fe262abc5d
commit 20c7075ddb
2 changed files with 14 additions and 12 deletions

View File

@@ -458,10 +458,8 @@ class InputModel {
return;
}
evt['type'] = type;
if (isDesktop) {
y -= CanvasModel.topToEdge;
x -= CanvasModel.leftToEdge;
}
y -= CanvasModel.topToEdge;
x -= CanvasModel.leftToEdge;
final canvasModel = parent.target!.canvasModel;
final nearThr = 3;
var nearRight = (canvasModel.size.width - x) < nearThr;