Open zsviczian opened 2 years ago
Could you consider add "select hook" to improve the accuracy of stylus operations?
Currently, after annotating an image in excalidraw using "freedraw", there's a high likelihood of mistakenly manipulating the image when selecting the "freedraw" content or erasing it using an eraser. To enhance the precision of operations and user experience, I suggest introduct of a "select hook" function.
Feature Requirements:
Use Case: Users annotate on images using "freedraw". When they attempt to select or erase the stylus content, they might accidentally touch the image, leading to unintended manipulations. With the "select hook" feature, when users attempt to select or erase, it will only target the "freedraw" content and not the image itself.
I like the idea. I can add on onOpen hook that you can add your custom script to. I already have a hook for onDrop, but I don’t think it is very well known. I could have some other hooks:
Originally posted by @zsviczian in https://github.com/zsviczian/obsidian-excalidraw-plugin/discussions/483#discussioncomment-2349093