@lvce-editor/extension-search-view 7.5.0 → 7.7.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.
@@ -3828,12 +3828,14 @@ const resize = async (state, dimensions) => {
3828
3828
  const contentHeight = total * itemHeight;
3829
3829
  const scrollBarHeight = getScrollBarSize(listHeight, contentHeight, minimumSliderSize);
3830
3830
  const numberOfVisible = getNumberOfVisibleItems$1(listHeight, itemHeight);
3831
- const minLineY = Math.floor(deltaY / itemHeight);
3832
- const maxLineY = Math.min(minLineY + numberOfVisible, total);
3833
3831
  const finalDeltaY = getFinalDeltaY(listHeight, itemHeight, total);
3834
- const scrollBarY = getScrollBarY$1(deltaY, finalDeltaY, listHeight, scrollBarHeight);
3832
+ const newDeltaY = clamp(deltaY, 0, finalDeltaY);
3833
+ const minLineY = Math.floor(newDeltaY / itemHeight);
3834
+ const maxLineY = Math.min(minLineY + numberOfVisible, total);
3835
+ const scrollBarY = getScrollBarY$1(newDeltaY, finalDeltaY, listHeight, scrollBarHeight);
3835
3836
  return {
3836
3837
  ...state,
3838
+ deltaY: newDeltaY,
3837
3839
  finalDeltaY,
3838
3840
  height,
3839
3841
  maxLineY,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-search-view",
3
- "version": "7.5.0",
3
+ "version": "7.7.0",
4
4
  "description": "Extension Search View Worker",
5
5
  "repository": {
6
6
  "type": "git",