jeanlemotan / esp32-cam-fpv

esp32 cam digital low latency fpv
MIT License
279 stars 68 forks source link

Mouse Y-Axis Offset bug #29

Closed whstudio123 closed 1 year ago

whstudio123 commented 1 year ago

In fact, in my computer, the mouse pointer has some pixel offset on the y-axis. The offset of these pixels is exactly equal to the height of the taskbar at the top of ubuntu. I know this should be a question of imgui. Because I have also seen similar problems in imgui. Does the program have mouse drift on your computer? Can anyone help solve this problem?

jeanlemotan commented 1 year ago

imgui uses screen-space instead of window-space coordinates, so the fix is to subtract the window position from the mouse x and y. Let me check and I'll post a PR

jeanlemotan commented 1 year ago

Looks like a imgui-sdl bug. Found this: https://github.com/ocornut/imgui/issues/2151. Can you check pls? If it works, submit a PR