在触摸设备的Windows之间使用DataTranfer拖动DataTransfer?

发布于 2025-01-21 14:48:45 字数 770 浏览 1 评论 0原文

我有些惊讶 - 也许我只是在搜索错误的术语 - 但是对我来说,目前看起来您无法随着触摸设备的数据传输而拖放,这是真的吗?

至少我发现的是库,例如 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

动次打次papapa 2025-01-28 14:48:45

我在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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文