I am new to Purescript. I am working with MouseEvents from
"import DOM.HTML.Event.EventTypes" and I couldn't understand the difference between Mouseup, Mousedown,Mouseout and Mouseleave.
I searched for documentation but couldn't find an explanation for it.
I would like to know when each of it is getting triggered.
Difference Between MouseEvents
921 views Asked by Sakala Bhargava Ram At
1
MouseDown occurs when a mouse button is pressed, MouseUp when the button is released. MouseLeave occurs when the mouse pointer leaves the element associated with the listener.
You can see documentation for a list of Web events here: https://developer.mozilla.org/en-US/docs/Web/Events
As noted at https://developer.mozilla.org/en-US/docs/Web/Events/mouseleave:
There is also the
clickevent that is usually the easiest to use.