@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
|
|
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,
|