score:0

Accepted answer
clickMe = e => {
    console.log(e.screenX, e.screenY);
    if (e.screenX === 0 && e.screenY === 0) {
      // event not triggered from the screen.
      console.log("not from screen");
    } else {
      // clicked by the mouse.
    }
  };

Related Query

More Query from same tag