【发布时间】:2018-11-19 15:30:39
【问题描述】:
我有一个定义为以下代码描述的 Konva 阶段,并且该阶段没有响应单击,即使它响应拖动并自动拖动也是如此。
有没有办法调试点击问题??
舞台上有一个层,上面有一些没有完全覆盖它的对象。
this.stage = new Konva.Stage({
container: divName,
width: this.width,
height: this.height,
draggable: true
});
this.stage.on("click mousedown", function() {
console.log("click");
});
this.stage.on("dragstart", function() {
console.log("dragstart");
});
this.nodeLayer = new Konva.Layer();
this.stage.add(this.nodeLayer);
【问题讨论】:
-
你看到我的回答了吗?也许您的代码中有其他东西正在拦截点击?
标签: javascript konvajs