Drag and drop handler

41 views
Skip to first unread message

Sonal Jha

unread,
Jun 1, 2015, 7:42:08 AM6/1/15
to cef...@googlegroups.com
Hi

I know how to enable or disable drag and drop feature in my application. in CefDragHandler there is a OnDragEnter(CefBrowser browser, CefDragData dragData, CefDragOperationsMask mask) using which I can enable or disable drag and drop.

My problem is I want drag and drop only for specific area, the HTML control for which ondragover="allowDrop(event)" is set to true. Right now what is happening is if I enable drag and drop I can put the file anywhere in the browser which is not what I want. If I disable drag and drop I am not able to upload files at the area which allows drop.

What I want is to enable drag and drop only for those HTML div where allowDrop is true and not everywhere.
Please help!
Reply all
Reply to author
Forward
0 new messages