exyte / Macaw

Powerful and easy-to-use vector graphics Swift library with SVG support
MIT License
6k stars 552 forks source link

.onTouchPressed registering multiple touches when pressed only once #765

Closed allensoberano closed 2 years ago

allensoberano commented 2 years ago

When re-enumerating over the nodes to set different attributes ends up registering the node for multiple touches.

allensoberano commented 2 years ago

When I was re-enumerating over the nodes I was assuming that it was updating the onTouchPressed event as opposed to adding a new one. Apologize for the confusion but maybe that will help others who encounter the same thing.