Translate position to account for the display scaling factor. (#4275)

* Translate position to account for the display scaling factor.

* re-generate JS bindings

* dont change cargo lock

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
Dustin BensingandJonathan Kelley authored and GitHub committed 2025-06-18 16:28:06 -07:00
1 parent 1d3168dc4a
commit 7f44a09b38
8 files changed
+10 -7

No files matched your search

+3
View File
@@ -204,6 +204,9 @@ export class NativeInterpreter extends JSChannel_ {
}
handleWindowsDragOver(xPos, yPos) {
const displayScaleFactor = window.devicePixelRatio || 1;
xPos /= displayScaleFactor;
yPos /= displayScaleFactor;
const element = document.elementFromPoint(xPos, yPos);
if (element != window.dxDragLastElement) {