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
Advertisement
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 $(“.floor”).mousedown(function() { $(“….
Advertisement