Hey everyone,
I am developing a plugin and I got stuck trying to refine some behaviour.
Basically, I am drawing a rectangle on the canvas, with a white circle in the corners as shown below.
Now, I would like the size of this circle to be responsive to the distance to the mouse (ie the handles grow on the corner as the mouse gets closer). I have implemented this in the Render
method but unfortunately, this only refreshes when the canvas is clicked, when zooming in/out, etc. Therefore, I would need another way which refreshes the circles continuously.
What would be a nice way to do this?