[Spice-devel] [PATCH] [spice-html5] Add the top scroll to the cursor offset

Aric Stewart aric at codeweavers.com
Wed Aug 8 12:39:11 PDT 2012


There is, however I have not found it materially required of the window 
is too narrow.

-aric

On 8/8/12 10:04 AM, Jeremy White wrote:
>>           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
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>


More information about the Spice-devel mailing list