@lvce-editor/text-search-view 1.2.1 → 1.4.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.
- package/dist/textSearchViewMain.js +28 -1
- package/package.json +1 -1
|
@@ -5188,7 +5188,7 @@ const handleScrollBarMove = (state, eventY) => {
|
|
|
5188
5188
|
const newDeltaY = newPercent * finalDeltaY;
|
|
5189
5189
|
return setDeltaY(state, newDeltaY);
|
|
5190
5190
|
};
|
|
5191
|
-
const handleWheel = (state, deltaMode, deltaY) => {
|
|
5191
|
+
const handleWheel$1 = (state, deltaMode, deltaY) => {
|
|
5192
5192
|
number(deltaMode);
|
|
5193
5193
|
number(deltaY);
|
|
5194
5194
|
return setDeltaY(state, state.deltaY + deltaY);
|
|
@@ -5338,6 +5338,33 @@ const handleListPointerDown = async (state, button, name) => {
|
|
|
5338
5338
|
};
|
|
5339
5339
|
};
|
|
5340
5340
|
|
|
5341
|
+
const handleWheel = async (state, deltaMode, deltaY) => {
|
|
5342
|
+
const {
|
|
5343
|
+
maxLineY: oldMaxLineY,
|
|
5344
|
+
minLineY: oldMinLineY
|
|
5345
|
+
} = state;
|
|
5346
|
+
const newState = handleWheel$1(state, deltaMode, deltaY);
|
|
5347
|
+
if (newState.minLineY === oldMinLineY && newState.maxLineY === oldMaxLineY) {
|
|
5348
|
+
return newState;
|
|
5349
|
+
}
|
|
5350
|
+
const {
|
|
5351
|
+
fileIconCache,
|
|
5352
|
+
listItems,
|
|
5353
|
+
maxLineY,
|
|
5354
|
+
minLineY
|
|
5355
|
+
} = newState;
|
|
5356
|
+
const visibleItems = listItems.slice(minLineY, maxLineY);
|
|
5357
|
+
const {
|
|
5358
|
+
icons,
|
|
5359
|
+
newFileIconCache
|
|
5360
|
+
} = await getFileIcons(visibleItems, fileIconCache);
|
|
5361
|
+
return {
|
|
5362
|
+
...newState,
|
|
5363
|
+
fileIconCache: newFileIconCache,
|
|
5364
|
+
icons
|
|
5365
|
+
};
|
|
5366
|
+
};
|
|
5367
|
+
|
|
5341
5368
|
const getUsePullBasedSearch = async () => {
|
|
5342
5369
|
try {
|
|
5343
5370
|
return Boolean(await getPreference('Search.usePullBasedSearch'));
|