我遇到了onlick famo.us随机生成CustomEvent或Mouseevent的表面,或者在某些情况下都是。这是如何工作的?
表面B与其半径一样宽并且具有变换(10,280,2) 表面A的宽度为320,并具有变换(0,0,1)
当我点击最左边的Surface A时,我在Surface B上获得了一个CustomEvent,在Surface B上获得了一个MouseEvent。
以上似乎是由z变换引起的。当我将z变换反转为时,显然Surface B消失了
表面B与其半径一样宽并且具有变换(10,280,1) 表面A的宽度为320,并具有变换(0,0,2)
this.surfaceA.on('click', function(e) {
if (e instanceof CustomEvent) {
this._eventOutput.emit('select-row', this.obj);
}
}.bind(this));
this.surfaceB.on('click', function(e) {
if (e instanceof CustomEvent) {
this._eventOutput.emit('new-event', this.obj);
}
}.bind(this));
答案 0 :(得分:0)
更新到0.3.0似乎解决了问题