Re: [Spice-devel] spice-html5 cursor positioning problem

2014-09-12 Thread Jeremy White
I don't know about performance issues but I would suggest to calculate the pointer position relative to the canvas like this: var rect = sc.display.surfaces[sc.display.primary_surface].canvas.getBoundingClientRect(); this.x = e.clientX - rect.left; this.y = e.clientY - rect.top; I do

[Spice-devel] spice-html5 cursor positioning problem

2014-09-12 Thread Gianni Pirozzi
Hello, I also have a cursor positioning problem with spice-html5 which I now realize is layout specific too. The calculation of the pointer position relative to the canvas in function SpiceMsgcMousePosition (spicemsg.js) seems to rely on the assumptions that: - the canvas offsetParent is the bod