24 January 2022

Making Shapes Smart

Mouse Events

picture of a mouse

Event Properties Events are objects that have properties.


offsetX
offsetY
shiftKey (true if pressed)
altKey (true if pressed)
ctrlKey (true if pressed)

What are:
    pageX
    pageY

How do you know if right or left clickage has occurred?

Events that can occur in elements

    mousedown
    mouseover
    mouseenter
    mouseleave
    mouseout
    mouseup
    

Draw Program