2014-10-08 57 views
0

我遇到過表面,其中onlick famo.us隨機生成CustomEvent或Mouseevent,或者在某些情況下都是這兩種情況。這個怎麼用?famo.us點擊生成兩個事件Mouseevent和CustomEvent - 覆蓋表面

enter image description here

表面B是一樣寬其半徑和已變換(10,280,2) 表面A的寬度爲320,並變換(0,0,1)

當我點擊最左邊的表面A,我得到表面B上的CustomEvent和表面B上的MouseEvent。

上面看起來是由z變換引起的。當我將z變換反向時,顯然表面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

我不得不快速頁面轉換的是,當按鈕是幾分之一秒後,輸入那有那麼被點擊的頁面負載。我也有按鈕,點擊它們後會點擊幾秒。當我的菜單按鈕真的很煩人。如果這是你遇到的事情讓我知道的類型,我有一個修復。 – aintnorest 2014-10-12 20:07:13

+0

有什麼方法可以讓我們看看jsFiddle或jsBin工作示例嗎?仍然有信息遺漏,這將有助於我們聰明地回答你的問題。比如,你如何跟蹤表面B上的CustomEvent和MouseEvent – talves 2014-10-14 21:35:11

回答

0

更新到0.3.0似乎已經解決了這一問題