在触摸设备的Windows之间使用DataTranfer拖动DataTransfer?
我有些惊讶 - 也许我只是在搜索错误的术语 - 但是对我来说,目前看起来您无法随着触摸设备的数据传输而拖放,这是真的吗?
至少我发现的是库,例如 Interact.js 或 draggable 制作拖动&在不同的浏览器和设备之间更容易且一致,但它们不支持数据传输。对于数据传输,您使用不支持触摸设备。
似乎也暗示了这一点。尽管它已经足够大,可以保持希望发生变化的希望。
我错过了什么吗?
如果我想为鼠标和触摸设备的项目移动和数据传输拖放 - 我是否必须相互依存?
I'm a bit surprised - and maybe I'm just searching for the wrong terms - but to me it currently looks like you can't have drag and drop with data transfer on touch devices, is that true?
At least all I find is libraries like interact.js or draggable making drag & drop inside a browser easier and consistent among different browsers and devices but they don't support data transfer. For data transfer you use the Drag and Drop API which seems to not support touch devices.
This article seems to suggest this, too. Though it's old enough to keep up the hope that things have changed..
Am I missing something?
And in case I want drag and drop for item movement and data transfer for mouse and touch devices - would I have to implement for both interdependently?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在github上找到了这个存储库:
https://github.com/github.com/bernardo-castilho/dragdragdragdragdragdragdragdragdragdragdragdragdragdragdragdragdragdragdroptouch
如果正常工作,它看起来不错。我使用库存浏览器在Android 12上对其进行了测试,并且可以使用。然后,我在Safari中只有4年的iOS 12上测试了它,但它不起作用。
这将很困难。支持仍然是斑点的。我也不完全理解您所说的“ Windows之间的数据转换”。您的意思是在浏览器窗口之间拖动吗?
I found this repository on github:
https://github.com/Bernardo-Castilho/dragdroptouch
Seems nice if it works as advertised. I tested it on Android 12 with the stock browser and it worked. Then I tested it on iOS 12, which is only 4 years old, in Safari and it didn't work.
This is going to be difficult. Support will still be patchy. I also don't quite understand what you mean by "datatransfer between windows". You mean drag and drop between browser windows?