Safari浏览器中的html5拖放是否被破解? [英] Is html5 drag and drop broken on safari browser for windows?
问题描述
html5拖放在Safari浏览器上的窗口打破了吗?如果是这样,是否有任何解决方法?
我在Windows 7上使用Safari 5.1.2,并且放置目标始终显示为不可放下。尝试在2个不同的Windows 7计算机上使用干净安装和最新设置。
试用了这个演示和我自己的代码,这个代码适用于所有其他最新的浏览器。
事实上,Safari浏览器的D& D无法正常工作。
对于Safari来说:
将逻辑放入可拖动对象的'dragend'事件中 -
取而代之的是丢弃的'drop'事件对象。
Is html5 drag and drop broken on safari browser for windows ? If so, are there any work arounds ?
I'm using Safari 5.1.2 on Windows 7 and the drop targets always show up as non droppable. Tried this on 2 different windows 7 computers with clean install and latest setup.
Tried with both this demo and my own code which works on every other latest browser.
Indeed D&D for Safari doesn't work.
Kind of work around for Safari:
Put the logic in the 'dragend' event of the draggable object
Instead in the 'drop' event of the dropping on object.
这篇关于Safari浏览器中的html5拖放是否被破解?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!