Created: 2023-06-12 15:05

Position

Mouse events contain 3 different positions

  • page => relative to the top of the page, regardless if scrolled
  • client => relative to the to/left browser’s window, ie. the visible section of the page.
  • screen => relative to top/left of the monitor (ie. the whole screen), regardless of the size of the browser window

Source


https://javascript.info/mouse-drag-and-drop