V
V
Vladimir Varlamov2013-12-27 15:06:20
Opera
Vladimir Varlamov, 2013-12-27 15:06:20

Opera 12: draggable=false ignores underlying draggable=true. How to decide?

Opera 12 error in html5 Drag and Drop. If draggable=false is set on an element, then it ignores the underlying draggable=true and dragging such an underlying element is not possible. Correct behavior (including according to the specification): if the element from which the draggable starts _is not draggable=true, then look for the parent with draggable=true and drag the whole tree up to the top element.
Example error jsfiddle.net/4z8Dc/1
How can this be resolved?
Opera 12 at the end of 2013 is 40% of the traffic on my projects.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mobi, 2013-12-27
@mobi

Replace draggable=falsewith draggable=auto(or delete altogether). I don't see another way (after a cursory reading of dev.opera.com/articles/view/drag-and-drop ).

V
Vladimir Varlamov, 2013-12-27
@bes_internal

I already read this. The bottom line is that in my example div, but in real life it draggable=falseis set to tags aor img, which by default draggable=trueis therefore draggable=autonot suitable. For example, if you need to drag menu items.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question