onTouch for multiple elements #1077
-
Is possible to have for this example: Events for multiple elements inside Canvas? I want to be able to add dynamically multiple Circles in Canvas, with different colors and be able to drag them. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
it is something in our radar and a probably the most popular feature request at the moment. We are looking into it but it is not trivial to offer a generic solution for this because most of the element positions and bounds depends of the Skia context (clip/matrix) which are only known when drawing the frame, not when touch the canvas. We will have a solution for this but we want to make sure that we get it right. In the meantime, we found that adding your own custom logic for touch different elements works like a charm. |
Beta Was this translation helpful? Give feedback.
it is something in our radar and a probably the most popular feature request at the moment. We are looking into it but it is not trivial to offer a generic solution for this because most of the element positions and bounds depends of the Skia context (clip/matrix) which are only known when drawing the frame, not when touch the canvas.
We will have a solution for this but we want to make sure that we get it right. In the meantime, we found that adding your own custom logic for touch different elements works like a charm.