Re: [Xsltforms-support] UI Events in XSLTForms
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2016-02-25 20:50:54
|
Tim, Ignoring UIEvent was first added in XSLTForms because it happened that, with Google Chrome only, submissions were activated twice while just pressing once the corresponding trigger. Since this workaround, Google Chrome has been updated and I have not reproduce this issue anymore. So, in the next commit, UIEvent will be treated as any Event allowing the Open Street Map demo to work as previously. We will see if users might complain again about submissions. Best regards, Alain Le 20/02/2016 21:07, Tim Thompson a écrit : > Hi, Alain, > > There still seems to be an issue with UI events in the latest > revision. I opened an issue on GitHub[1]. > > Best regards, > Tim > > [1] https://github.com/AlainCouthures/xsltforms/issues/15 > > -- > Tim A. Thompson > Metadata Librarian (Spanish/Portuguese Specialty) > Princeton University Library > > > On Sun, Dec 6, 2015 at 9:56 PM, Tim Thompson <tim...@gm... > <mailto:tim...@gm...>> wrote: > > Alain, > > I was working through Steven Pemberton's excellent OpenStreetMap > XForms example[1] from XML Amsterdam, and I noticed that it does > not work in the latest version of XSLTForms (his demo is using > XSLTForms RC1.0). > > A small change introduced in rev. 620 appears to be the problem: > https://github.com/AlainCouthures/xsltforms/blob/972a712e47fb952255c25e15d437255aaa58b31a/src/js/xmlevtmngt/Listener.js.xml#L102 > > Removing "&& !(event instanceof UIEvent)" allows the mouse events > to be registered again. Is it safe to remove this condition? > > Best regards, > Tim > > [1] http://homepages.cwi.nl/~steven/Talks/2015/11-05-example/ > <http://homepages.cwi.nl/%7Esteven/Talks/2015/11-05-example/> > > -- > Tim A. Thompson > Metadata Librarian (Spanish/Portuguese Specialty) > Princeton University Library > > |