We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e5825a commit 25e1ea0Copy full SHA for 25e1ea0
content/patterns/slider-multithumb/examples/js/slider-multithumb.js
@@ -62,8 +62,8 @@ class SliderMultithumb {
62
this.svgNode.setAttribute('width', this.svgWidth);
63
this.svgNode.setAttribute('height', this.svgHeight);
64
65
- this.minSliderFocusNode.setAttribute('y', this.focusY);
66
- this.maxSliderFocusNode.setAttribute('y', this.focusY);
+ this.minSliderFocusNode.setAttribute('y', Math.max(2, this.focusY));
+ this.maxSliderFocusNode.setAttribute('y', Math.max(2, this.focusY));
67
this.minSliderFocusNode.setAttribute('width', this.focusWidth);
68
this.maxSliderFocusNode.setAttribute('width', this.focusWidth);
69
this.minSliderFocusNode.setAttribute('height', this.focusHeight);
0 commit comments