ZIm/crates/workspace2/src
Nathan Sobo 4f6bef5b63
Improve interaction between clicking and dragging (#3737)
Once a drag starts, we won't fire click listeners or style any elements
as active.

- Don't fire click listeners or show active state once a drag is in
progress
- Don't show hover style when a drag is in progress
- Draw borders above content
- If borders are opaque, apply them to the content mask. This prevents
hovers from firing on content underneath the border, which was creating
issues where the drag handle was inside the border, so we'd flicker the
hover when the mouse moved out of the drag handle and into the 1px
border on the left dock.
- Add a `block_mouse` helper which causes transparent elements to paint
an "opaque" layer to prevent mouse events from falling through. We use
this for the drag handle as well to disable hover, click, etc on items
in the panel.

Release Notes:

- N/A
2023-12-20 19:31:06 -07:00
..
pane Merge branch 'main' into element-types 2023-11-14 15:49:10 -08:00
persistence Begin porting the PaneAxis element 2023-12-07 17:16:19 -08:00
dock.rs Move application of content mask and z-index into Interactivity::paint 2023-12-20 11:43:45 -07:00
item.rs Merge branch 'main' into focus-handlers-on-draw 2023-12-14 23:08:23 -05:00
modal_layer.rs Merge remote-tracking branch 'origin/main' into perf-2 2023-12-14 16:56:36 -07:00
notifications.rs Enable all warnings in workspace, fix all warnings 2023-12-14 14:15:56 -08:00
pane.rs Reintroduce LSP diagnostic/status message (#3728) 2023-12-20 12:23:36 -05:00
pane_group.rs Use InteractiveBounds everywhere we change the cursor style 2023-12-20 13:59:52 +01:00
persistence.rs Begin porting the PaneAxis element 2023-12-07 17:16:19 -08:00
searchable.rs Enable all warnings in workspace, fix all warnings 2023-12-14 14:15:56 -08:00
shared_screen.rs Fix inactive tab styles (the verbose way) (#3591) 2023-12-11 15:42:17 -05:00
status_bar.rs Reintroduce LSP diagnostic/status message 2023-12-19 18:38:25 -05:00
toolbar.rs Increase toolbar padding 2023-12-20 17:03:44 -05:00
workspace2.rs Prune dead workspaces from WorkspaceStore on read 2023-12-20 16:08:58 -08:00
workspace_settings.rs Restore auto-save on focus change, re-enable workspace tests 2023-11-30 14:45:27 -08:00