@lvce-editor/settings-view 2.12.0 → 2.13.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.
@@ -3753,7 +3753,7 @@ const handleWheel = (state, eventDeltaY, inputSource = User) => {
3753
3753
  itemHeight = 1
3754
3754
  } = state;
3755
3755
  const itemCount = filteredItems.length;
3756
- const stepLimit = itemCount === 0 ? 10 : Number.POSITIVE_INFINITY;
3756
+ const stepLimit = itemCount === 0 ? 10 : Infinity;
3757
3757
  const limitedEventDelta = Math.max(-stepLimit, Math.min(stepLimit, eventDeltaY));
3758
3758
  const total = deltaY + limitedEventDelta;
3759
3759
  // Prevent scrolling beyond the available content height. If content is smaller
@@ -3855,10 +3855,10 @@ const getSettingItemsEditor = () => {
3855
3855
  return 'font size must be of type number';
3856
3856
  }
3857
3857
  const minFontSize = 10;
3858
- const maxFontSize = 100;
3859
3858
  if (value < minFontSize) {
3860
3859
  return 'font size must be at least 10';
3861
3860
  }
3861
+ const maxFontSize = 100;
3862
3862
  if (value > maxFontSize) {
3863
3863
  return 'font size must not be greater than 100';
3864
3864
  }
@@ -3953,10 +3953,10 @@ const getSettingItemsEditor = () => {
3953
3953
  return 'font size must be of type number';
3954
3954
  }
3955
3955
  const minTabSize = 1;
3956
- const maxTabSize = 8;
3957
3956
  if (value < minTabSize) {
3958
3957
  return `tab size must be at least ${minTabSize}`;
3959
3958
  }
3959
+ const maxTabSize = 8;
3960
3960
  if (value > maxTabSize) {
3961
3961
  return `tab size must not be greater than ${maxTabSize}`;
3962
3962
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/settings-view",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",