[Spice-devel] [PATCH] [spice-html5] Add the top scroll to the cursor offset
Jeremy White
jwhite at codeweavers.com
Wed Aug 8 08:04:58 PDT 2012
> this.x = e.clientX - sc.display.surfaces[sc.display.primary_surface].canvas.offsetLeft;
> - this.y = e.clientY - sc.display.surfaces[sc.display.primary_surface].canvas.offsetTop;
> + this.y = e.clientY - sc.display.surfaces[sc.display.primary_surface].canvas.offsetTop + document.body.scrollTop;
Is there an equivalent .scrollLeft? If not, you can consider this an
ack from me.
Cheers,
Jeremy
More information about the Spice-devel
mailing list