Changed order of tap handler and simulated clicks.

This commit is contained in:
Uwe Oestermeier 2023-02-09 16:02:09 +01:00
parent 5af350182d
commit 20d209cbe1

View File

@ -162,11 +162,6 @@ export default class CardWrapper extends Object {
} }
nodeTapped(node, event) { 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)) { if (this.tapNodes.has(node)) {
let handler = this.tapNodes.get(node) let handler = this.tapNodes.get(node)
handler(event, 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 return false
} }