Changed order of tap handler and simulated clicks.
This commit is contained in:
parent
5af350182d
commit
20d209cbe1
@ -162,11 +162,6 @@ export default class CardWrapper extends Object {
|
||||
}
|
||||
|
||||
nodeTapped(node, event) {
|
||||
console.log('nodeTapped', node, this.isClickable(node))
|
||||
if (this.isClickable(node)) {
|
||||
this.simulateClick(node, event)
|
||||
return true
|
||||
}
|
||||
if (this.tapNodes.has(node)) {
|
||||
let handler = this.tapNodes.get(node)
|
||||
handler(event, node)
|
||||
@ -181,6 +176,10 @@ export default class CardWrapper extends Object {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.isClickable(node)) {
|
||||
this.simulateClick(node, event)
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user