This allows us to override the default behavior of clicking on images and thus solves PR #90. Now the only thing left to do is to use a RawGestureDetector in the EmbedBuilder to deactivate the previous behavior (by entering the GestureArena and always win). Explanation of the code: When a `PointerDownEvent` is received by the `GestureBinding` a hit test is performed to determine which HitTestTarget nodes are affected. For this the (I think) element tree is traversed downwards to find out which elements has been hit. To find out which elements were hit, the method `hitTestSelf` and `hitTestChildren` are used. Since the `hitTestChildren` method of TextLine has not been implemented yet, it has always returned false by default, which is why the hit test never arrived at the `embedBuilder`. With the code change, the hit is passed on and can be processed correctly in the embed.pull/94/head
parent
e36033929c
commit
01d5fd5669
1 changed files with 5 additions and 0 deletions
Loading…
Reference in new issue