This commit is contained in:
TinyHerm committed 2026-11-24 23:40:08 +03:00
commit 1c7a8cf25f
579 files changed
+83196

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
namespace VibranceHud;
internal static class DragTracker
{
private static int _count;
private static int _scrollBars;
public static bool AnyDragging => _count > 0;
public static bool AnyScrollBarDragging => _scrollBars > 0;
public static void Begin()
{
_count++;
}
public static void End()
{
if (_count > 0)
{
_count--;
}
}
public static void BeginScrollBar()
{
_scrollBars++;
}
public static void EndScrollBar()
{
if (_scrollBars > 0)
{
_scrollBars--;
}
}
internal static void ResetForTest()
{
_count = 0;
_scrollBars = 0;
}
}