That should not be the case, in fact here is the script uses on the client
side
Mouse_Event_Script : constant String :=
"(e.clientX - e.target.offsetLeft) + '|' + " &
"(e.clientY - e.target.offsetTop) + '|' + e.screenX + '|' + " &
"e.screenY + '|' + e.which + '|' + e.altKey + '|' + " &
"e.ctrlKey + '|' + e.shiftKey + '|' + e.metaKey + '|'";
I am correcting for offset as part of the event message.
Are you finding this is the case in actual tests? I'll go back and test
again, but mouse events should be relative to the element they are set on.
David Botton
On Wed, Feb 18, 2015 at 3:22 PM, Pascal <[email protected]> wrote:
> Ok, thanks David.
>
> By the way, X and Y from Mouse_Event_Record are absolute regarding the
> whole document.
> I you want to have them relative to a view for instance canvas present
> anywhere in the document you have to substact the position of the view with:
> function Offset_From_Top ( Element : Element_Type) return Integer;
> function Offset_From_Left ( Element : Element_Type) return Integer;
> Position in pixels relative to the document
> Maybe worth to put it in some documentation.
>
> Regards, Pascal.
> http://blady.pagesperso-orange.fr
>
>
> Le 18 févr. 2015 à 21:01, Rabbi David Botton <[email protected]> a écrit :
>
> > I sometimes see 1, sometimes 2 and sometimes 3. The browser is
> generating the events, i.e. they are not duplicates created with in the
> framework.
> >
> > David Botton
> >
> >
> > On Tue, Feb 17, 2015 at 3:44 PM, Pascal <[email protected]> wrote:
> > Hello,
> >
> > I've my mouse move event handler which log the coordinates of the mouse
> pointer with a serial number in front of the log:
> > (coordinates are X, Y, Screen_X, Screen_Y)
> > ...
> > 6850: 580, 133; 1455, 476
> > 6851: 580, 133; 1455, 476
> > 6852: 587, 127; 1462, 470
> > 6853: 587, 127; 1462, 470
> > 6854: 596, 121; 1471, 464
> > 6855: 596, 121; 1471, 464
> > 6856: 603, 117; 1478, 460
> > 6857: 603, 117; 1478, 460
> >
> > I move the pointer regularly from one point to an other.
> > It seems that the handler received the mouse move event twice.
> >
> > Is it the case on your side?
> >
> > Thanks, Pascal.
> > http://blady.pagesperso-orange.fr
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> > with Interactivity, Sharing, Native Excel Exports, App Integration & more
> > Get technology previously reserved for billion-dollar corporations, FREE
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Gnoga-list mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/gnoga-list
> >
> >
> ------------------------------------------------------------------------------
> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> > with Interactivity, Sharing, Native Excel Exports, App Integration & more
> > Get technology previously reserved for billion-dollar corporations, FREE
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk_______________________________________________
> > Gnoga-list mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/gnoga-list
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> Gnoga-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Gnoga-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnoga-list