Commit d31b33a1 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Slider: fix button jumping to 0 when clicked

parent e33a7842
......@@ -169,6 +169,7 @@
},
setPosition(newPosition) {
if (newPosition === null) return;
if (newPosition < 0) {
newPosition = 0;
} else if (newPosition > 100) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment