Skip to content

Commit 08397dc

Browse files
authored
fix(slider): resize ignored highlightrange setting
The new highlightRange option was visually ignored whenever the viewport triggered a resize and also the label were redrawn because of autoAdjust:true
1 parent 7b5640a commit 08397dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/definitions/modules/slider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@
493493
resize: function (_event) {
494494
// To avoid a useless performance cost, we only call the label refresh when its necessary
495495
if (gapRatio !== module.get.gapRatio()) {
496-
module.setup.labels();
496+
module.resync();
497497
gapRatio = module.get.gapRatio();
498498
}
499499
},
@@ -507,11 +507,11 @@
507507

508508
resync: function () {
509509
module.verbose('Resyncing thumb position based on value');
510+
module.setup.labels();
510511
if (module.is.range()) {
511512
module.update.position(module.secondThumbVal, $secondThumb);
512513
}
513514
module.update.position(module.thumbVal, $thumb);
514-
module.setup.labels();
515515
},
516516
takeStep: function (multiplier) {
517517
if (!multiplier) {

0 commit comments

Comments
 (0)