likemike Posted April 4, 2021 Share Posted April 4, 2021 Hello! There is a TUnimImage (name: uniimage) with an OnClick-event (no OnDblClickEvent is assigned!). If I click once, all is perfect. If I double-click an error occurs: "Event:tap: O123 not found in session list." (this is, because the OnClick-event creates some new UnimImages on runtime). So what I need is a prevention from using double-click! What I've tried is that: unimImage.ClientEvents.ExtEvents.Add('afterrender=function afterrender(sender, eOpts) { sender.el.dom.addEventListener(''dblclick'', function(e){e.stopPropagation()});}'); But that doesn't work for me. Any suggestions? Thanks in advance!! Link to comment Share on other sites More sharing options...
Sherzod Posted April 4, 2021 Share Posted April 4, 2021 1 hour ago, likemike said: There is a TUnimImage (name: uniimage) with an OnClick-event (no OnDblClickEvent is assigned!). If I click once, all is perfect. Hello, Can you make a simple testcase to see this "issue"? It seems that the problem here is not in the double click... Link to comment Share on other sites More sharing options...
likemike Posted April 4, 2021 Author Share Posted April 4, 2021 I agree! With a simple testcase I couldn't reproduce the error. So my solution was to disable the dblclick-event. Link to comment Share on other sites More sharing options...
Recommended Posts