bartbutenaers / node-red-contrib-ui-svg

A Node-RED widget node to show interactive SVG (vector graphics) in the dashboard
Apache License 2.0
93 stars 27 forks source link

Output msg doesn't contain coordinates for touch #59

Closed bartbutenaers closed 4 years ago

bartbutenaers commented 4 years ago

When a shape has a "click" event, the coordinates and position are in the output message (as expected):

image

However on a touch screen, the touchstart event will trigger a message without these two fields:

image

For the 2.0.0 release we should refactor the coordinate related fields in the output anyway, to have the same as the other UI nodes (see discourse discussion): we will try to use the same fields as the dashboard button sends. And perhaps again a legacy flag for old flows, to make sure they are not broken ...

bartbutenaers commented 4 years ago

Solved in "panzoom" branch for version 2.0.0