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:
1 parent
1d3168dc4a
commit
7f44a09b38
8 files changed
+10
-7
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user