Interesting, how is this bead added? to main Application beads?

El dom., 25 oct. 2020 a las 11:41, Harbs (<[email protected]>) escribió:

> This doesn’t belong in ElementWrapper.
>
> There’s a IEEventAdapterBead which should be added to all apps which need
> to support IE mouse and keyboard events.
>
>
> > On Oct 25, 2020, at 3:34 AM, [email protected] wrote:
> >
> > This is an automated email from the ASF dual-hosted git repository.
> >
> > gregdove pushed a commit to branch develop
> > in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
> >
> > commit 53dddc4c64c5c4194d1ba71cf4d5e82ba1cb9c3b
> > Author: greg-dove <[email protected]>
> > AuthorDate: Sun Oct 25 11:42:56 2020 +1300
> >
> >    fix for: IE11 was not converting MouseEvents - fixes 'mouse coords
> from MouseEvents not consistent with other browsers, on IE11'.
> > ---
> > .../src/main/royale/org/apache/royale/core/ElementWrapper.as   | 10
> +++++++++-
> > 1 file changed, 9 insertions(+), 1 deletion(-)
> >
> > diff --git
> a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ElementWrapper.as
> b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ElementWrapper.as
> > index 3bb85db..520f548 100644
> > ---
> a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ElementWrapper.as
> > +++
> b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ElementWrapper.as
> > @@ -190,7 +190,15 @@ package org.apache.royale.core
> >               {
> >             var e:IBrowserEvent;
> >             var nativeEvent:Object = eventObject.getBrowserEvent();
> > -            var converter:Function = converterMap[
> nativeEvent.constructor.name];
> > +            var nativeClassName:String = nativeEvent.constructor.name;
> > +            if (nativeClassName == null) {
> > +                //IE11 :
> > +                if (nativeEvent.constructor == window['MouseEvent'] ||
> nativeEvent.constructor == window['PointerEvent']) {
> > +                    nativeEvent.constructor.name = 'MouseEvent';
> > +                    nativeClassName = 'MouseEvent';
> > +                }
> > +            }
> > +            var converter:Function = converterMap[nativeClassName];
> >             if (converter)
> >                 e = converter(nativeEvent,eventObject);
> >             else
> >
>
>

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Reply via email to