File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ export abstract class BaseIntSliderView extends DescriptionView {
219
219
direction : orientation === 'horizontal' ? 'ltr' : 'rtl' ,
220
220
format : {
221
221
from : ( value : string ) : number => Number ( value ) ,
222
- to : ( value : number ) : number => value ,
222
+ to : ( value : number ) : number => this . _validate_slide_value ( value ) ,
223
223
} ,
224
224
} ) ;
225
225
@@ -285,7 +285,7 @@ export abstract class BaseIntSliderView extends DescriptionView {
285
285
* and applying it to the other views on the page.
286
286
*/
287
287
_validate_slide_value ( x : number ) : number {
288
- return Math . floor ( x ) ;
288
+ return Math . round ( x ) ;
289
289
}
290
290
291
291
$slider : any ;
Original file line number Diff line number Diff line change @@ -765,7 +765,7 @@ export class SelectionSliderView extends DescriptionView {
765
765
direction : orientation === 'horizontal' ? 'ltr' : 'rtl' ,
766
766
format : {
767
767
from : ( value : string ) : number => Number ( value ) ,
768
- to : ( value : number ) : number => value ,
768
+ to : ( value : number ) : number => Math . round ( value ) ,
769
769
} ,
770
770
} ) ;
771
771
You can’t perform that action at this time.
0 commit comments