@royaloperahouse/harmonic 1.0.8-d → 1.0.8-e

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.
@@ -12229,7 +12229,7 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
12229
12229
  }, []);
12230
12230
  React.useEffect(function () {
12231
12231
  var scrollTriggerCheck = function scrollTriggerCheck() {
12232
- var elementGap = 100;
12232
+ var elementGap = LIST_ITEM_GAP;
12233
12233
  var reachedItem = tabs == null ? void 0 : tabs.find(function (item) {
12234
12234
  var targetSectionElement = document.getElementById(item.id);
12235
12235
  if (!targetSectionElement) return false;
@@ -12252,7 +12252,7 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
12252
12252
  offsetWidth = tabLinkElement.offsetWidth;
12253
12253
  var isInView = offsetLeft >= scrollLeft && offsetLeft + offsetWidth < scrollLeft + clientWidth;
12254
12254
  if (!isInView && tabListRef != null && tabListRef.current) {
12255
- tabListRef.current.scrollLeft = offsetLeft;
12255
+ tabListRef.current.scrollLeft = offsetLeft - LIST_ITEM_GAP;
12256
12256
  }
12257
12257
  setSelectedItem(reachedItem.id);
12258
12258
  }