diff --git a/Source/Engine/UI/GUI/Common/Slider.cs b/Source/Engine/UI/GUI/Common/Slider.cs
index f1f33732e..61c722dfe 100644
--- a/Source/Engine/UI/GUI/Common/Slider.cs
+++ b/Source/Engine/UI/GUI/Common/Slider.cs
@@ -524,6 +524,18 @@ public class Slider : ContainerControl
}
}
+ ///
+ public override void OnKeyUp(KeyboardKeys key)
+ {
+ if (key == KeyboardKeys.Escape && _isSliding)
+ {
+ EndSliding();
+ return;
+ }
+
+ base.OnKeyUp(key);
+ }
+
///
public override bool OnMouseUp(Float2 location, MouseButton button)
{
@@ -536,6 +548,18 @@ public class Slider : ContainerControl
return base.OnMouseUp(location, button);
}
+ ///
+ public override bool OnTouchUp(Float2 location, int pointerId)
+ {
+ if (base.OnTouchUp(location, pointerId) && _isSliding)
+ {
+ EndSliding();
+ return true;
+ }
+
+ return false;
+ }
+
///
public override void OnEndMouseCapture()
{