@lvce-editor/quick-pick-worker 3.2.0 → 3.3.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.
@@ -3459,7 +3459,6 @@ const diffChildren = (oldChildren, newChildren, patches) => {
3459
3459
  patches.push({
3460
3460
  type: NavigateParent
3461
3461
  });
3462
- currentChildIndex = -1;
3463
3462
  }
3464
3463
  // Add remove patches in reverse order (highest index first)
3465
3464
  // This ensures indices remain valid as we remove
@@ -3594,6 +3593,9 @@ const getVisible = (setSize, protoVisibleItems, minLineY, focusedIndex) => {
3594
3593
  };
3595
3594
 
3596
3595
  const getScrollBarOffset = (delta, finalDelta, size, scrollBarSize) => {
3596
+ if (finalDelta <= 0) {
3597
+ return 0;
3598
+ }
3597
3599
  const scrollBarOffset = delta / finalDelta * (size - scrollBarSize);
3598
3600
  return scrollBarOffset;
3599
3601
  };
@@ -3673,6 +3675,9 @@ const HandleBeforeInput = 'handleBeforeInput';
3673
3675
  const HandleBlur = 'handleBlur';
3674
3676
  const HandleFocus = 'handleFocus';
3675
3677
  const HandleInput = 'handleInput';
3678
+ const HandleScrollbarPointerDown = 'handleScrollbarPointerDown';
3679
+ const HandleScrollbarPointerMove = 'handleScrollbarPointerMove';
3680
+ const HandleScrollbarPointerUp = 'handleScrollbarPointerUp';
3676
3681
 
3677
3682
  const QuickPick = 'QuickPick';
3678
3683
  const QuickPickItems = 'QuickPickItems';
@@ -3967,6 +3972,18 @@ const renderEventListeners = () => {
3967
3972
  name: HandleWheel,
3968
3973
  params: ['handleWheel', 'event.deltaMode', 'event.deltaY'],
3969
3974
  passive: true
3975
+ }, {
3976
+ name: HandleScrollbarPointerDown,
3977
+ params: ['handleScrollBarPointerDown', 'event.clientY', 'event.pointerId'],
3978
+ preventDefault: true
3979
+ }, {
3980
+ name: HandleScrollbarPointerMove,
3981
+ params: ['handleScrollBarPointerMove', 'event.clientY', 'event.pointerId'],
3982
+ preventDefault: true
3983
+ }, {
3984
+ name: HandleScrollbarPointerUp,
3985
+ params: ['handleScrollBarPointerUp', 'event.pointerId'],
3986
+ preventDefault: true
3970
3987
  }, {
3971
3988
  name: HandleBlur,
3972
3989
  params: ['handleBlur']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/quick-pick-worker",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lvce-editor/quick-pick-worker.git"