@lvce-editor/source-control-worker 3.7.0 → 3.8.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.
|
@@ -3415,16 +3415,17 @@ const getSourceControlHeaderVirtualDom = (inputPlaceholder, inputMessage) => {
|
|
|
3415
3415
|
}, ...inputDom];
|
|
3416
3416
|
};
|
|
3417
3417
|
|
|
3418
|
+
const scrollBarNode = {
|
|
3419
|
+
childCount: 1,
|
|
3420
|
+
className: mergeClassNames(ScrollBar, ScrollBarSmall),
|
|
3421
|
+
onPointerDown: HandleScrollBarPointerDown,
|
|
3422
|
+
type: Div
|
|
3423
|
+
};
|
|
3418
3424
|
const getScrollBarVirtualDom = (scrollBarHeight, scrollBarActive) => {
|
|
3419
3425
|
if (scrollBarHeight <= 0) {
|
|
3420
3426
|
return [];
|
|
3421
3427
|
}
|
|
3422
|
-
return [{
|
|
3423
|
-
childCount: 1,
|
|
3424
|
-
className: mergeClassNames(ScrollBar, ScrollBarSmall),
|
|
3425
|
-
onPointerDown: HandleScrollBarPointerDown,
|
|
3426
|
-
type: Div
|
|
3427
|
-
}, {
|
|
3428
|
+
return [scrollBarNode, {
|
|
3428
3429
|
childCount: 0,
|
|
3429
3430
|
className: mergeClassNames(ScrollBarThumb, scrollBarActive ? ScrollBarThumbActive : ''),
|
|
3430
3431
|
type: Div
|