Skip to content

Commit b747169

Browse files
Multi-thumb Slider Example: Fix glitch that cut off part of ring on hover (pull #3214)
Fixes issue #3174: When hovering over the slider, the top half of the ring was cut off.
1 parent 8d6a1c4 commit b747169

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/patterns/slider-multithumb/examples/js/slider-multithumb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class SliderMultithumb {
6666
this.svgNode.setAttribute('width', this.svgWidth);
6767
this.svgNode.setAttribute('height', this.svgHeight);
6868

69-
this.minSliderFocusNode.setAttribute('y', this.focusY);
70-
this.maxSliderFocusNode.setAttribute('y', this.focusY);
69+
this.minSliderFocusNode.setAttribute('y', Math.max(2, this.focusY));
70+
this.maxSliderFocusNode.setAttribute('y', Math.max(2, this.focusY));
7171
this.minSliderFocusNode.setAttribute('width', this.focusWidth);
7272
this.maxSliderFocusNode.setAttribute('width', this.focusWidth);
7373
this.minSliderFocusNode.setAttribute('height', this.focusHeight);

0 commit comments

Comments
 (0)