refact canvas position and size

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-02-28 14:50:51 +08:00
parent 6a97608b98
commit 8703d23277
3 changed files with 23 additions and 20 deletions

View File

@@ -459,8 +459,8 @@ class InputModel {
}
evt['type'] = type;
if (isDesktop) {
y = y - stateGlobal.tabBarHeight - stateGlobal.windowBorderWidth.value;
x -= stateGlobal.windowBorderWidth.value;
y -= CanvasModel.topToEdge;
x -= CanvasModel.leftToEdge;
}
final canvasModel = parent.target!.canvasModel;
final nearThr = 3;