pex-gui icon indicating copy to clipboard operation
pex-gui copied to clipboard

Mouse coords are relative to window not canvas

Open vorg opened this issue 7 years ago • 1 comments

I can't click correctly if e.g. body has padding

vorg avatar Mar 19 '18 12:03 vorg

Do you have a repro case? Is it related to this commented part:

let mx = e.offsetX // ? e.offsetX : e.pageX - this._ctx.gl.canvas.offsetLeft
let my = e.offsetY // ? e.offsetY : e.pageY - this._ctx.gl.canvas.offsetTop

dmnsgn avatar Mar 26 '19 13:03 dmnsgn