Sortable
Sortable copied to clipboard
[bug] Chrome / Chromium ghost image misplaced
The further to the right you grab the element, the more it is shifted to the left. The same applies to the height; the lower you grip, the higher it is shifted. (See also the picture). The behavior currently occurs for me in Chromium version 102.0.5005.61 (Official Build) (64-bit) and Chrome also version 102.0.5005.61 (Official Build) (64-bit) on Ubuntu 22.04. It should be said right away that the problem does not only occur with this library, but with most html5 drag-and-drop examples I found on the net. But not all of them, e.g. Dragula does not show this problem. So is this a known behavior, or can something be done about it?

I had to use forceFallback: true to fix this.
Thanks for this advice @cars10, it works great. And just to have it documented here, forceFallback: true "ignore the HTML5 DnD behavior and force the fallback to kick in".
Since for some time now all browsers are somehow based on Chrome and so far Firefox is the only one proven to work with forceFallback: false, I use https://stackoverflow.com/a/7000222 to set the option accordingly. Maybe it is possible to exclude more browsers, but I have not tested this.