Slider: fix button jumping to 0 when clicked

pull/6367/head
Leopoldthecoder 2017-08-08 18:17:40 +08:00 committed by 杨奕
parent e33a784227
commit d31b33a1f2
1 changed files with 1 additions and 0 deletions

View File

@ -169,6 +169,7 @@
},
setPosition(newPosition) {
if (newPosition === null) return;
if (newPosition < 0) {
newPosition = 0;
} else if (newPosition > 100) {