瀏覽代碼

icontext 事件在up中处理

haojianlong 4 年之前
父節點
當前提交
ebba00b26c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/LocationPointScene.ts

+ 1 - 1
src/LocationPointScene.ts

@@ -163,7 +163,7 @@ export class LocationPointScene extends FloorScene {
      */
     iconClick(_this: any, fn: Function): void {
         this.iconList.forEach(t => {
-            t.connect("onMouseDown", _this, fn);
+            t.connect("onMouseUp", _this, fn);
         });
     }