Welcome Guest Search | Active Topics | Sign In | Register

HOWTO Disable Drag/Drop from EO-WebBrowser. Options
JSB
Posted: Wednesday, October 4, 2017 1:07:54 PM
Rank: Advanced Member
Groups: Member

Joined: 1/2/2017
Posts: 32
Please help,

I've noticed that the EO-WebBrowser out-of-the-box, allows drag/drop to occur on <a> anchor links, that copies the url from the EO-WebBrowser is on, to other applications, like IE11.

To explain further. If I have a EO-WebBrowser control navigate to a simple web page that contains an anchor link <a> element, and then move the mouse cursot of the link, and press left button, then drag to some other application that accepts urls/text from drag/drop operations, like Word, IE11, Edge, and others, the url on the <a> link will be copied, and in the case the drop spot is something like IE11, it will auto-navigate to the url.

How can one disable this from occurring?
eo_support
Posted: Wednesday, October 4, 2017 2:05:02 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,225
Hi,

This feature is implemented by the Chromium browser engine and currently there is no interface to disable it. Sorry about it!

Thanks
JSB
Posted: Wednesday, October 4, 2017 2:08:29 PM
Rank: Advanced Member
Groups: Member

Joined: 1/2/2017
Posts: 32
Thanks for the reply.
Is there anything we can do to the HTML to prevent <a> anchor elements from being susceptible to this?
eo_support
Posted: Wednesday, October 4, 2017 2:10:58 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,225
You can try handling drag/drop related event but that would be out of the scope of our support since we generally do not provide support on coding inside your page. You can use Google Chrome for testing/debugging purpose and if you can disable this behavior with Google Chrome, you can apply the same code with EO.WebBrowser and it should work.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.