@lvce-editor/explorer-view 1.22.0 → 1.23.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.
@@ -3203,7 +3203,7 @@ const handleUpload = async (state, dirents) => {
3203
3203
  }
3204
3204
  };
3205
3205
 
3206
- const setDeltaY = (state, deltaY) => {
3206
+ const setDeltaY = async (state, deltaY) => {
3207
3207
  const {
3208
3208
  itemHeight,
3209
3209
  height,
@@ -3219,11 +3219,18 @@ const setDeltaY = (state, deltaY) => {
3219
3219
  }
3220
3220
  const minLineY = Math.round(deltaY / itemHeight);
3221
3221
  const maxLineY = minLineY + Math.round(height / itemHeight);
3222
+ const visible = items.slice(minLineY, maxLineY);
3223
+ const {
3224
+ icons,
3225
+ newFileIconCache
3226
+ } = await getFileIcons(visible, state.fileIconCache);
3222
3227
  return {
3223
3228
  ...state,
3224
3229
  deltaY,
3225
3230
  minLineY,
3226
- maxLineY
3231
+ maxLineY,
3232
+ icons,
3233
+ fileIconCache: newFileIconCache
3227
3234
  };
3228
3235
  };
3229
3236
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/explorer-view",
3
- "version": "1.22.0",
3
+ "version": "1.23.0",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",