I have encountered surfaces for which onlick famo.us randomly generates CustomEvent or Mouseevent or in some cases both. How does this work?
Surface B is as wide as its radius and has a transform (10, 280, 2) Surface A's width is 320 and has a transform (0,0,1)
When I click on Surface A at the very left end, I get a CustomEvent on Surface B and a MouseEvent on Surface B.
The above seems to be caused by the z transform. When I reverse the z transform to, obviously Surface B disappears
Surface B is as wide as its radius and has a transform (10, 280, 1) Surface A's width is 320 and has a transform (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));