> Le 29 août 2019 à 11:07, Joakim Dahlgren Strandberg <joaki...@kth.se> a écrit > : > > Hi everyone, > > Lately I've started looking into Gnoga again for web development. > Sad to hear about Davids health issue but glad he feels better and on the > road to recovery. > I recently ran into the issue of mouse click event propagation. > What is the best way to stop mouse clicks to bubble up the DOM > in one's application? I've successfully used the hack that was > suggested by Olivier (after David had suggested something similar). > There is also a comment by David on improving the situation in 2015. > My guess is that the hack is still the best way to go about it. > I've added the following subprogram in my project: > > procedure Connect_Click_Handler > (Element : in out Gnoga.Gui.Base.Base_Type'Class; > Handler : in Gnoga.Gui.Base.Action_Event) is > begin > Element.On_Click_Handler (Handler => Handler); > Element.Bind_Event_Script > (Event => "click", > Script => "e.stopPropagation()"); > end Connect_Click_Handler; > > It works for me but would be cool if there was some subprogram > in Gnoga one could call directly instead of making two > subprogram calls to the Gnoga framework.
Hello Joakim, This could be done in next version 1.6. Regards, Pascal. http://blady.pagesperso-orange.fr _______________________________________________ Gnoga-list mailing list Gnoga-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnoga-list