mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-08-07 22:01:15 +08:00
parent
eaf513bf2f
commit
c088113714
@ -62,7 +62,7 @@ VantComponent({
|
|||||||
this.dragStatus = 'draging';
|
this.dragStatus = 'draging';
|
||||||
|
|
||||||
getRect(this, '.van-slider').then((rect) => {
|
getRect(this, '.van-slider').then((rect) => {
|
||||||
const diff = (this.deltaX / rect.width) * this.data.max;
|
const diff = (this.deltaX / rect.width) * this.getRange();
|
||||||
this.newValue = this.startValue + diff;
|
this.newValue = this.startValue + diff;
|
||||||
this.updateValue(this.newValue, false, true);
|
this.updateValue(this.newValue, false, true);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user