galister / WlxOverlay

A simple OpenVR overlay for Wayland and X11 desktops
GNU General Public License v3.0
127 stars 6 forks source link

SpaceDrag Fix #22

Closed ComputerMaster1st closed 1 year ago

ComputerMaster1st commented 1 year ago

Added an else for the if(spaceDragBefore) statement to prevent "drift" as it looked like it was drifting with FPS it seems.

Also changed the name of _lastPosition variable to _startPosition to make more sense.

Tested locally and works as expected. No "drift" issues. Recommend other people test before merging incase something is amiss.

ComputerMaster1st commented 1 year ago

Note: Please don't ask me why dotnet format did the whole project. I can only guess it's normal. Never used format before. I usually let VSCode and Visual Studio do it automagically.