git.iko.soy/rowtype-yoga/purescript-yoga-react-native
on main help sign in
Replace native NSSplitView with pure JS split view using PanResponder divider
commit4649d1a75300567c32ecd71317b05e8d5ad9c732 authorMark <mark.eibes@gmail.com> dateThu 19 Feb 2026, 23:58 (7 months ago) parentb6247ae
1 file changed+12−4
src/Yoga/React/Native/MacOS/SplitView.js+12−4
src/Yoga/React/Native/MacOS/SplitView.js+12−4
@@ -64,13 +64,21 @@ export const splitViewImpl = React.forwardRef((props, ref) => {
6464 onMouseEnter: () => setHovered(true),
6565 onMouseLeave: () => setHovered(false),
6666 style: {
67− width: Math.max(dividerThickness, 5),
67+ width: 9,
6868 cursor: "col-resize",
69− backgroundColor: hovered ? dHoverColor : dColor,
70− justifyContent: "center",
7169 alignItems: "center",
70+ justifyContent: "center",
7271 },
73− }),
72+ },
73+ React.createElement(View, {
74+ style: {
75+ width: dividerThickness,
76+ height: "100%",
77+ backgroundColor: hovered ? dHoverColor : dColor,
78+ },
79+ pointerEvents: "none",
80+ })
81+ ),
7482 React.createElement(
7583 View,
7684 { style: { flex: 1, overflow: "hidden" } },