fix(macos/input): incorrect mouse input for non-main display (#2461)

This commit is contained in:
TimmyOVO
2024-05-03 01:52:29 +08:00
committed by GitHub
parent 7fb8c76590
commit 9d5ee2f57d
2 changed files with 15 additions and 10 deletions

View File

@@ -169,6 +169,9 @@ namespace platf {
display->width = display->av_capture.frameWidth;
display->height = display->av_capture.frameHeight;
// We also need set env_width and env_height for absolute mouse coordinates
display->env_width = display->width;
display->env_height = display->height;
return display;
}