Fix right-click on server info bar 'character switch' icon

This commit is contained in:
Liza 2024-12-22 16:15:30 +01:00
parent 794b07ff0a
commit 22025cdbc9
Signed by: liza
GPG Key ID: 2C41B84815CF6445
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ internal sealed class CharacterSwitch : IDisposable
{
UIInputData* uiInputData = UIInputData.Instance();
MouseButtonFlags mouseButtonFlags =
uiInputData != null ? uiInputData->CursorInputs.MouseButtonReleasedFlags : MouseButtonFlags.LBUTTON;
uiInputData != null ? uiInputData->CursorInputs.MouseButtonHeldThrottledFlags : MouseButtonFlags.LBUTTON;
var target = FindCharacter(mouseButtonFlags.HasFlag(MouseButtonFlags.RBUTTON) ? -1 : 1);
SwitchCharacter(target);
}

View File

@ -1,6 +1,6 @@
<Project Sdk="Dalamud.NET.Sdk/11.0.0">
<PropertyGroup>
<Version>2.1</Version>
<Version>2.2</Version>
<OutputPath>dist</OutputPath>
</PropertyGroup>