New to JavaScript, trying to figure out how to combine addEventListener events.
For example, I want to trigger something when I double-click the side of the screen, within 30 or 40 pixels.
I assume I need to combine these somehow:
document.addEventListener("dblclick",function (event) {
document.addEventListener("mouseover", (event) => {
How is that done? I'm also struggling to get that mouseover working even alone, if anyone cares to take a stab at it!