exyte / Macaw

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

Added ability to handle touches in bigger touch area than node's bounds #724

Closed devpolant closed 4 years ago

devpolant commented 4 years ago

Intention

Updates

P.S I know that it looks more like a workaround, so I'm not sure do you think it is a good idea to add this code into main repository. Please just let me know what do you think about it. If you think it is not a good idea, then I will close this PR.

Thanks in advance!

ystrot commented 4 years ago

Hi Anton,

Thank you for your work on Macaw! However this task doesn't really require any job on the Macaw engine. Usually in this case you can add a bigger invisible shape which can trigger touch handlers. So you can actually write external tool for Macaw which will add such a shape for every node. This will give you more flexibility (you can add it only for part of nodes, or insets can be different for different nodes, etc.) and will not complicate core library.

devpolant commented 4 years ago

Ok, thanks for your reply. I will close this PR.