Преглед изворни кода

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);
         });
     }