@popsure/dirty-swan 0.30.5 → 0.30.6
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/dist/cjs/index.js
CHANGED
|
@@ -13813,9 +13813,11 @@ var useComparisonTable = function () {
|
|
|
13813
13813
|
if (!headerRef.current) {
|
|
13814
13814
|
return;
|
|
13815
13815
|
}
|
|
13816
|
-
var
|
|
13817
|
-
|
|
13818
|
-
|
|
13816
|
+
var headerWidth = headerRef.current.getBoundingClientRect().width;
|
|
13817
|
+
var currentTabIndex = Math.round(headerRef.current.scrollLeft / headerWidth);
|
|
13818
|
+
if (headerWidth < 544) {
|
|
13819
|
+
setSelectedTabIndex(currentTabIndex);
|
|
13820
|
+
}
|
|
13819
13821
|
};
|
|
13820
13822
|
var debouncedTableScroll = lodash_debounce(handleTableScroll, 150);
|
|
13821
13823
|
require$$0.useEffect(function () {
|