We are about to switch to a new forum software. Until then we have removed the registration on this forum.
how i can recognize which object is selected by mousePressed on the object.
I have make two objects textarea and div created by createElement() on p5js canvas.but when I mousePressed on textarea,it doesn'tt recognize it.
Please show your code to get proper feedback. Or you could check the mousePressed provided in the example section in the P5.js website.
on mouse pressed on it,it is not recognize
Check this example: https://p5js.org/examples/dom-input-and-button.html
You can also check the reference: mouseEvents
Also check the P5.dom library: https://p5js.org/reference/#/libraries/p5.dom
Assign an ID to your textField and then you can access it with select. You still need to attach an eventHandler to interact with the mosue.