fix: fix vertical direction.
This commit is contained in:
@@ -230,7 +230,7 @@ public abstract class NumericUpDown : TemplatedControl
|
|||||||
private int GetDelta(Point point)
|
private int GetDelta(Point point)
|
||||||
{
|
{
|
||||||
bool horizontal = Math.Abs(point.X) > Math.Abs(point.Y);
|
bool horizontal = Math.Abs(point.X) > Math.Abs(point.Y);
|
||||||
var value = horizontal ? point.X : point.Y;
|
var value = horizontal ? point.X : -point.Y;
|
||||||
return value switch
|
return value switch
|
||||||
{
|
{
|
||||||
> 0 => 1,
|
> 0 => 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user