mouse click inside an Pshape object?
in
Programming Questions
•
3 years ago
Hi all,
I am trying to move a loaded svg ( using Pshape ) by allowing the user to click on it and drag it around. is there any way to know whether the mouse has been clicked on/inside the drawn shape. the shapes may not be regular geometric figures and there are multiple shapes on the screen so i need to know which one has been clicked on.
Thanks in advance.
Varun
I am trying to move a loaded svg ( using Pshape ) by allowing the user to click on it and drag it around. is there any way to know whether the mouse has been clicked on/inside the drawn shape. the shapes may not be regular geometric figures and there are multiple shapes on the screen so i need to know which one has been clicked on.
Thanks in advance.
Varun
1