I am trying to add circles when the event mousedown is generated into the square-one (grey square) only. If the mouse hovers outside of the square-one, it should not insert any circles anywhere else such as square-two(green square). Question: How can I set the limits for the circles such that they are only inserted within the square-one boundaries? Thank you
Tag: mousedown
how to implement mousemove while mouseDown pressed js
I have to implement mouse move event only when mouse down is pressed. I need to execute “OK Moved” only when mouse down and mouse move. I used this code Answer Use the mousemove event. From mousemove and mouseover jquery docs: The mousemove event is sent to an element when the mouse pointer moves inside the element. The mouseover event