fix:光标显示功能

修复开启后不显示的问题
This commit is contained in:
2025-12-31 16:36:21 +08:00
parent 4cc8af7ff0
commit 295f8f56e3
2 changed files with 18 additions and 32 deletions
+15 -2
View File
@@ -1828,6 +1828,11 @@ namespace Ink_Canvas
private void inkCanvas_MouseMove(object sender, MouseEventArgs e)
{
if (isMouseDown) MouseTouchMove(e.GetPosition(inkCanvas));
if (Settings.Canvas.IsShowCursor)
{
SetCursorBasedOnEditingMode(inkCanvas);
}
}
private void inkCanvas_MouseUp(object sender, MouseButtonEventArgs e)
@@ -2054,13 +2059,21 @@ namespace Ink_Canvas
}
private void MainWindow_OnMouseMove(object sender, MouseEventArgs e)
{
if (e.StylusDevice == null)
if (Settings.Canvas.IsShowCursor)
{
System.Windows.Forms.Cursor.Show();
SetCursorBasedOnEditingMode(inkCanvas);
}
else
{
System.Windows.Forms.Cursor.Hide();
if (e.StylusDevice == null)
{
System.Windows.Forms.Cursor.Show();
}
else
{
System.Windows.Forms.Cursor.Hide();
}
}
}
}