如何修复 chrome 浏览器光标拖动在rtl页面?

bq9c1y66  于 2022-12-16  发布在  Go
关注(0)|答案(1)|浏览(135)

如何修复chromium中的这个错误,当页面是rtl并且元素是可拖动的,拖动的元素不直接显示在光标下,而是很远,就像上面的图片

简单例子:

<p draggable="true" dir="rtl">snippet</p>

问题是

在RTL视图中应该从右边而不是从左边抓住被拖动的项目

uidvcgyl

uidvcgyl1#

问题是你使用了p,它占用了整个宽度。

<div dir="rtl">
        <span draggable="true">This is a snippet which takes the full width of the container. This is a snippet which takes the full width of the container. This is a snippet which takes the full width of the container. This is a snippet which takes the full width of the container. </span>
</div>

相关问题