@karmo-co/drift-kit-public 25.5.0 → 25.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.js +3 -0
- package/drift-kit.min.css +2 -2
- package/package.json +1 -1
package/components.js
CHANGED
|
@@ -5683,6 +5683,9 @@
|
|
|
5683
5683
|
if (!tab || root.scrollWidth <= root.clientWidth)
|
|
5684
5684
|
return;
|
|
5685
5685
|
var l = tab.offsetLeft, r = l + tab.offsetWidth;
|
|
5686
|
+
var cs = getComputedStyle(root);
|
|
5687
|
+
l -= parseFloat(cs.scrollPaddingInlineStart) || 0;
|
|
5688
|
+
r += parseFloat(cs.scrollPaddingInlineEnd) || 0;
|
|
5686
5689
|
if (l < root.scrollLeft)
|
|
5687
5690
|
root.scrollLeft = l;
|
|
5688
5691
|
else if (r > root.scrollLeft + root.clientWidth)
|