brownhci / WebGazer

WebGazer.js: Scalable Webcam EyeTracking Using User Interactions
https://webgazer.cs.brown.edu
Other
3.54k stars 536 forks source link

refactor: `plotting-canvas` spans fullscreen independently #327

Closed TungVietLe closed 6 months ago

TungVietLe commented 1 year ago

As discussed in PR #326. Turn out it was the body padding of the CSS of my website. It might be a small addition. I would suggest adding:

canvas.style.pointerEvents = 'none'
canvas.style.top = '0px'
canvas.style.left = '0px'

so that the plotting-canvas would always span independently regardless of the client's CSS files.

Also, you are absolutely correct that it shifts and unshifts the canvas. Therefore, top and left equal to 0px would be sufficient.

jeffhuang commented 6 months ago

not a webgazer bug