Mitchell Hashimoto
e56dce3d84
macos: don't create drop zone at all if self dragging
2025-12-29 06:55:01 -08:00
Mitchell Hashimoto
be97b5bede
macOS: convert Surface dragging to use NSDraggingSource
2025-12-29 06:55:01 -08:00
Mitchell Hashimoto
9b7124cf62
macos: use preference key to detect self dragging
2025-12-29 06:55:01 -08:00
Mitchell Hashimoto
5245757875
macos: all sorts of cleanups
2025-12-29 06:55:01 -08:00
Mitchell Hashimoto
9724541a33
macos: unify split callbacks into a single tagged enum
2025-12-29 06:55:00 -08:00
Mitchell Hashimoto
60bc5a9ae7
macos: clean up some SwiftUI nesting
2025-12-29 06:55:00 -08:00
Mitchell Hashimoto
8f8b5846c6
macos: hook up onDrop to move splits
2025-12-29 06:55:00 -08:00
Mitchell Hashimoto
5d8c9357c0
macos: move around some functions
2025-12-29 06:55:00 -08:00
Mitchell Hashimoto
0a80f77766
macos: wire up onDrop
2025-12-29 06:55:00 -08:00
Mitchell Hashimoto
43d87cf9f8
macos: setup drop UI on our split views
2025-12-29 06:55:00 -08:00
Mitchell Hashimoto
304e2612ab
macOS: work on drop destination
2025-12-29 06:55:00 -08:00
Sean Kelly
e298620828
macOS: equalize splits when double tapping on SplitView divider
2025-11-08 23:16:16 -08:00
Andreas Deininger
a667b740ee
Fix typos
2025-10-03 18:52:26 +02:00
Mitchell Hashimoto
4237dad240
macOS: simple SplitView AX
...
Proper labels, action to move the divider
2025-06-15 07:56:05 -07:00
Mitchell Hashimoto
e4cd90b8a0
macos: set explicit identity for split tree view based on structure
...
Fixes #7546
SwiftUI uses type and structure to identify views, which can lead
to issues with tree like structures where the shape and type is the same
but the content changes. This was causing #7546 .
To fix this, we need to add explicit identity to the split tree view
so that SwiftUI can differentiate when it needs to redraw the view.
We don't want to blindly add Hashable to SplitTree because we don't want
to take into account all the fields. Instead, we add an explicit
"structural identity" to the SplitTreeView that can be used by SwiftUI.
2025-06-08 20:11:58 -07:00
Mitchell Hashimoto
f8e3539b7d
macos: remove the unused resizeEvent code from SplitView
2025-06-05 07:05:13 -07:00
Mitchell Hashimoto
ea1ff438f8
macos: handle split zooming
2025-06-05 07:05:12 -07:00
Mitchell Hashimoto
d1dce1e372
macos: restoration for new split tree
2025-06-05 07:05:11 -07:00
Mitchell Hashimoto
e3bc3422dc
macos: handle split resizing
2025-06-05 07:05:11 -07:00
Mitchell Hashimoto
1707159441
new SplitTree
2025-06-05 07:05:11 -07:00