|
@@ -369,6 +369,8 @@ export default class Layer {
|
|
}
|
|
}
|
|
selectItem = stateService.getSelectItem();
|
|
selectItem = stateService.getSelectItem();
|
|
stateService.setDraggingItem(selectItem);
|
|
stateService.setDraggingItem(selectItem);
|
|
|
|
+ stateService.clearFocusItem();
|
|
|
|
+ this.uiControl.focusVector = null;
|
|
// 清除上一个状态
|
|
// 清除上一个状态
|
|
// 设置当前事件名称
|
|
// 设置当前事件名称
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
@@ -460,7 +462,6 @@ export default class Layer {
|
|
this.lastX = X;
|
|
this.lastX = X;
|
|
this.lastY = Y;
|
|
this.lastY = Y;
|
|
const draggingItem = stateService.getDraggingItem();
|
|
const draggingItem = stateService.getDraggingItem();
|
|
-
|
|
|
|
switch (eventName) {
|
|
switch (eventName) {
|
|
case null:
|
|
case null:
|
|
//监控
|
|
//监控
|
|
@@ -992,6 +993,11 @@ export default class Layer {
|
|
let needAutoRedraw = false;
|
|
let needAutoRedraw = false;
|
|
switch (eventName) {
|
|
switch (eventName) {
|
|
case null:
|
|
case null:
|
|
|
|
+ if (e instanceof TouchEvent) {
|
|
|
|
+ stateService.clearSelectItem();
|
|
|
|
+ stateService.clearDraggingItem();
|
|
|
|
+ this.renderer.autoRedraw();
|
|
|
|
+ }
|
|
return;
|
|
return;
|
|
case LayerEvents.PanBackGround:
|
|
case LayerEvents.PanBackGround:
|
|
needAutoRedraw = true;
|
|
needAutoRedraw = true;
|