@lvce-editor/source-control-worker 3.8.0 → 3.10.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.
|
@@ -1992,7 +1992,9 @@ const getScrollBarOffset = (delta, finalDelta, size, scrollBarSize) => {
|
|
|
1992
1992
|
const scrollBarOffset = delta / finalDelta * (size - scrollBarSize);
|
|
1993
1993
|
return scrollBarOffset;
|
|
1994
1994
|
};
|
|
1995
|
-
const getScrollBarY =
|
|
1995
|
+
const getScrollBarY = (delta, finalDelta, size, scrollBarSize) => {
|
|
1996
|
+
return getScrollBarOffset(delta, finalDelta, size, scrollBarSize);
|
|
1997
|
+
};
|
|
1996
1998
|
const getNewDeltaPercent = (height, scrollBarHeight, relativeY) => {
|
|
1997
1999
|
const halfScrollBarHeight = scrollBarHeight / 2;
|
|
1998
2000
|
if (relativeY <= halfScrollBarHeight) {
|