Drag and drop issue in Chrome related to Windows scale (125%) Drag and drop issue in Chrome related to Windows scale (125%) google-chrome google-chrome

Drag and drop issue in Chrome related to Windows scale (125%)


The more I look at this problem, the more it seems the Chromium issue. Some days ago I posted a question, then I wanted to set up a bounty for it, and then I found your one, and I believe they are interrelated: Subpixel scroll issue, can't set scrollTop properly on Chrome 69.

There are some bug reports in Chromium issue tracker related to scale-rounding problem: link 1, link 2... I also created my own bug: link 3. There should be more information but it takes too much time to research. I think we may join efforts and draw more attention to the problem, and for example if it's Chromium responsibility, to help them with clarification and prioritisation.


I have the same problem with Version 76.0.3809.100 (64-Bit).

And I offset the image to compensate for the strange offset that I get in your stackbliz example too.

But with scaling 200% I need to multiply my calculated dragImage offset by 4 !!!

On 300% it's at 9
On 350% it's at 12.25

Do you see the pattern ???!

I'm afraid of my hack/fix for this problem. Not sure if it's just on windows, if it's just desktop. But for now I guess I will have to do window.devicePixelRatio^2 so I can continue my work.