riyashan / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

Drag and drop issues #97

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
To allow drag and drop in phpdesktop you need to set the "external_drag" 
setting to true, see the ChromeSettings wiki page. The name is unfortunate as 
it controls both external dragging (from OS/other applications) and internal 
dragging on webpages. Internal dragging should be enabled by default without 
the need of any setting.

Original issue reported on code.google.com by czarek.t...@gmail.com on 24 Mar 2014 at 7:03

GoogleCodeExporter commented 9 years ago
Seems like a bug in CEF. The CefDragHandler::OnDragEnter callback is supposed 
to affect only external drag events, but looks like it also affects internal 
drag events when returning true (to cancel drag event). Problem reported on CEF 
Forum:

http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=11592

Original comment by czarek.t...@gmail.com on 24 Mar 2014 at 11:30

GoogleCodeExporter commented 9 years ago
The solution to file dropping onto phpdesktop window is to detect it local file 
url in OnBeforeNavigation. The url dropping is a rare case and I think we can 
ignore it.

So by default OnDragEnter would return false (allow drag events). The 
external_drag setting would be removed. And OnBeforeNavigation would add a case 
for a local file being dropped into phpdesktop browser and that would be 
disallowed.

Original comment by czarek.t...@gmail.com on 24 Mar 2014 at 9:05

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 9 Aug 2014 at 6:28

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 13 Oct 2014 at 6:51

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 21 Oct 2014 at 10:38