[Webkit-unassigned] [Bug 204271] UIEvents Event Detection Gives False Positives for Drag events

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 18 07:54:02 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=204271

--- Comment #4 from Wenson Hsieh <wenson_hsieh at apple.com> ---
(In reply to dhtmlkitchen at gmail.com from comment #3)
> @Wenson_Hsieh — If not draggable is intended behavior then there are three
> bugs here. 
> 
> 1) BUG: browser reports false positives for drag events. 
> — Remove all drag events so that the example code to detect drag support
> results false (no false positives for support check).
> 
> 2) BUG: browser reports false positive for `draggable` property. The
> draggable property returns true if the element is draggable; otherwise, it
> returns false.
> 
> ```
> isDraggableSupported = (()=> {
>    const div = document.createElement("div");
> div.setAttribute("draggable", "true");
> return div.draggable === true;
> })();
> ```
> 
> isDraggableSupported must be false if draggable doesn't work, true
> otherwise. 

Just to clarify — the request is to make the draggable attribute always return false if the current configuration doesn’t support drag and drop (e.g. iPhone)?

> 
> 3) BUG: Documentation says drag drop is supported in iOS. This is wrong and
> misleading. The code does not do what the author says it does. If the code
> is not intended to work in iOS, then the documentation must say so. Current
> documentation does not reflect reality and is not easily tested. 3a) Make
> documentation reflect reality and 3b) make the demo run in the browser so it
> can be easily tested over http (so we don't need to copy, paste into a file,
> save, start a server, connect the iOS device to the computer via USB -- work
> the article's author apparently never did.

I do agree that the docs should make it clear that drag and drop is not supported on iPhone (at least, not in Safari).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191118/5f460099/attachment.htm>


More information about the webkit-unassigned mailing list