We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d6a1c4 commit b747169Copy full SHA for b747169
content/patterns/slider-multithumb/examples/js/slider-multithumb.js
@@ -66,8 +66,8 @@ class SliderMultithumb {
66
this.svgNode.setAttribute('width', this.svgWidth);
67
this.svgNode.setAttribute('height', this.svgHeight);
68
69
- this.minSliderFocusNode.setAttribute('y', this.focusY);
70
- this.maxSliderFocusNode.setAttribute('y', this.focusY);
+ this.minSliderFocusNode.setAttribute('y', Math.max(2, this.focusY));
+ this.maxSliderFocusNode.setAttribute('y', Math.max(2, this.focusY));
71
this.minSliderFocusNode.setAttribute('width', this.focusWidth);
72
this.maxSliderFocusNode.setAttribute('width', this.focusWidth);
73
this.minSliderFocusNode.setAttribute('height', this.focusHeight);
0 commit comments