滑動問題

This commit is contained in:
jasonchenwork 2025-06-18 13:44:01 +08:00
parent b8416494d8
commit 2e664788ca

View File

@ -120,7 +120,7 @@ namespace DualScreenDemo
if (isDragging) if (isDragging)
{ {
int deltaX = e.X - mouseDownLocation.X; int deltaX = e.X - mouseDownLocation.X;
if (Math.Abs(deltaX) > 50) // 滑動距離超過50像素才觸發 if (Math.Abs(deltaX) > 20) // 滑動距離超過50像素才觸發
{ {
if (deltaX > 0 && currentPageIndex > 0) if (deltaX > 0 && currentPageIndex > 0)
{ {