mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Don't allow two momentary toggles at the same time to avoid edge cases
This commit is contained in:
@ -261,7 +261,7 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
{
|
||||
if (key.ShiftPressed)
|
||||
{
|
||||
if (gridSnapBeforeMomentary == null)
|
||||
if (distanceSnapBeforeMomentary == null && gridSnapBeforeMomentary == null)
|
||||
{
|
||||
gridSnapBeforeMomentary = rectangularGridSnapToggle.Value;
|
||||
rectangularGridSnapToggle.Value = rectangularGridSnapToggle.Value == TernaryState.False ? TernaryState.True : TernaryState.False;
|
||||
@ -278,7 +278,7 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
|
||||
if (key.AltPressed)
|
||||
{
|
||||
if (distanceSnapBeforeMomentary == null)
|
||||
if (gridSnapBeforeMomentary == null && distanceSnapBeforeMomentary == null)
|
||||
{
|
||||
distanceSnapBeforeMomentary = distanceSnapToggle.Value;
|
||||
distanceSnapToggle.Value = distanceSnapToggle.Value == TernaryState.False ? TernaryState.True : TernaryState.False;
|
||||
|
Reference in New Issue
Block a user