Commit graph

23 commits

Author SHA1 Message Date
Admin
4a106111b8 ai manager otw 2026-04-28 12:24:40 +02:00
Kevin Boos
8d356ec85d Show "ghost" dock tab during drag animation. Fix drag-n-drop rules, target zones, etc (#1015)
* Dock: add touch support for Tab/Tab bar interactions (scroll, drag/drop)

Details below:

1. **Finger-based tab drag-and-drop via long press** (tab.rs, android.rs, ios.rs):
   - On touch devices, tab dragging now requires a long press before moving,
     distinguishing it from scroll gestures.
   - Added internal drag-and-drop support for Android and iOS backends,
     synthesizing Drag/Drop/DragEnd events from touch move/up, matching the
     existing Linux X11/Wayland approach.

2. **Finger-based drag-scrolling through the tab bar** (tab.rs, tab_bar.rs):
   - A finger down + move (without long press) on a tab now scrolls the tab bar
     horizontally instead of initiating a tab drag.
   - Includes flick-to-scroll with velocity and decay for natural momentum.
   - Touch tab selection is deferred to finger-up and only fires on a clean tap
     (no long press, no scroll gesture), so scrolling/dragging doesn't
     accidentally select tabs.

3. **Horizontal scroll input for tab bar** (scroll_bar.rs):
   - When `use_vertical_finger_scroll` is enabled on a horizontal scroll bar,
     both horizontal (trackpad) and vertical (mouse wheel) scroll inputs are
     accepted, so trackpad users can scroll the tab list in either direction.

* fix drag/drop on macOS by using internal drag logic.

Fix ghost tab on dock to be much cleaner in terms of behavior

* Cleanup dock tab drag&drop behavior

Make platforms consistent. Switch macOS to internal drag item tracking
instead of OS-native (just for the dock for now).

Ensure ghost tab that gets drawn is consistently hidden (instantly)
upon being dropped in an invalid target zone.
2026-04-06 23:00:13 +02:00
Kevin Boos
07c55f65a9 Dock: add touch support for Tab/Tab bar interactions (scroll, drag/drop) (#1013)
Details below:

1. **Finger-based tab drag-and-drop via long press** (tab.rs, android.rs, ios.rs):
   - On touch devices, tab dragging now requires a long press before moving,
     distinguishing it from scroll gestures.
   - Added internal drag-and-drop support for Android and iOS backends,
     synthesizing Drag/Drop/DragEnd events from touch move/up, matching the
     existing Linux X11/Wayland approach.

2. **Finger-based drag-scrolling through the tab bar** (tab.rs, tab_bar.rs):
   - A finger down + move (without long press) on a tab now scrolls the tab bar
     horizontally instead of initiating a tab drag.
   - Includes flick-to-scroll with velocity and decay for natural momentum.
   - Touch tab selection is deferred to finger-up and only fires on a clean tap
     (no long press, no scroll gesture), so scrolling/dragging doesn't
     accidentally select tabs.

3. **Horizontal scroll input for tab bar** (scroll_bar.rs):
   - When `use_vertical_finger_scroll` is enabled on a horizontal scroll bar,
     both horizontal (trackpad) and vertical (mouse wheel) scroll inputs are
     accepted, so trackpad users can scroll the tab list in either direction.
2026-04-06 16:29:13 +02:00
Admin
78a4a416fb override play 2026-02-27 10:28:00 +01:00
Admin
8e6702c56b First 2.0 2026-02-12 14:52:33 +01:00
Admin
a271bd0027 compile 2026-02-10 18:26:51 +01:00
Admin
76cce72dc9 Fused Id and LiveId 2025-10-25 20:53:30 +02:00
okapii
f8e511fec1 Fixes 2025-07-10 14:48:34 +02:00
okapii
532453f4bb Further complete dither support 2025-07-10 12:24:32 +02:00
okapii
670af0992b tab: further fix the pixel offset problem 2025-07-10 11:21:38 +02:00
okapii
ef9dab4941 tab: re-fix outline offset issue 2025-07-10 11:21:38 +02:00
okapii
73cb243b56 Variable name unifying 2025-07-10 11:21:38 +02:00
okapii
39774fd3ca View: gradient refactor progress 2025-07-10 11:21:38 +02:00
okapii
f1e7bab8a4 Tab: gradient refactor updates 2025-07-10 11:21:38 +02:00
okapii
5ddf168f8b Tab: gradient refactor 2025-07-10 11:21:38 +02:00
okapii
306efb819b TabFlat: removed a faulty 1px offset 2025-07-10 11:21:38 +02:00
okapii
f908228cdb Improve widgets in order to work properly with more extreme global theme settings. 2025-07-10 11:21:38 +02:00
okapii
37b1371baa Make sure tabs don't detach with high global spacing values in the theme. 2025-07-10 11:21:38 +02:00
okapii
219d265e2b Tabs: make sure low beveling values don't break how tabs are drawn. 2025-07-10 11:21:38 +02:00
okapii
f77557cf02 Further apply theme, simplify skeleton theme. 2025-06-16 10:48:31 +02:00
okapii
d9ef606f02 Improve tabbar height 2025-05-08 11:57:10 +02:00
okapii
3a6e33df94 Studio: reduce tab bar height 2025-05-08 11:57:10 +02:00
Eddy Bruel
ff9048cc37 Initial commit 2025-05-06 10:11:37 +02:00