4 ms·
Uh. So they can keep track of what the user is doing? Why would you just send a document when you can generate a heat map of where the user is on your website.
by DCH3416 2y ago
Uh. So they can keep track of what the user is doing?
Why would you just send a document when you can generate a heat map of where the user is on your website. And then complain about the performance and wonder why it costs so much to run a modern website.
- deleted 2y ago[deleted]
- Sayrus 2y agoThe issue isn't so much the coordinate of the mouse within a page, but that the coordinates are relative to the virtual screen layout. It describes where your window is located on the screen(s) and the click is expressed in screen coordinates. Mapping those coordinates to your website's renderer coordinates requires additional calculation. layerX[1] while non-standard is supported and returns a position relative to the top of the page or the top of the parent element. This makes coordinates positive only and 50,50 is the same for all users. For screenX, 3000,1567 is the same coordinate as 15,37 depending on where the window is located. [1] https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/layerX https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/...