The mouseup event isn't as straight forward to use as the other click type events.
It has to be an event listener of a mousedown event, as shown above.
I believe the mousemove event is used in the same way (in fact, I figured out how to attach a mousedown event by looking at a mousemove event from the tutorials).
Thank you! This had me stumped for a little bit.
ReplyDeleteMy pleasure!
DeleteI can not read the code snippet. Too small on iPhone. And cannot zoom the page or select the text to paste it into Notes.
ReplyDelete