Jump to content

How to disable dblclick function?


likemike

Recommended Posts

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

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

×
×
  • Create New...