forked from DebaucheryLibrarian/traxxx
Emitting value after clicking range track.
This commit is contained in:
parent
abe56d1207
commit
cf4978b37f
|
@ -79,6 +79,7 @@ function setNearest(event) {
|
||||||
const closestSlider = Math.abs(this.valueA - closestValue) < Math.abs(this.valueB - closestValue) ? 'valueA' : 'valueB';
|
const closestSlider = Math.abs(this.valueA - closestValue) < Math.abs(this.valueB - closestValue) ? 'valueA' : 'valueB';
|
||||||
|
|
||||||
this[closestSlider] = closestValue;
|
this[closestSlider] = closestValue;
|
||||||
|
this.emit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue