Linux: call window resizes instead of moving on a touch drag #82
Labels
No labels
android
bug
duplicate
feature request
linux
macos
needsinfo
severity: high
severity: low
severity: medium
telegram_gw
ui/ux
windows
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
another-im/anotherim-js#82
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On a Linux touch screen, the call window cannot be moved with a finger; a touch drag resizes it instead. It moves fine with the mouse. Seen on 0.7.20 (Flatpak, X11).
Cause (on
develop958e4dcatoo):getCurrentWindow().startDragging()(ui/src/state/call-window.ts:638). tao's move follows the pointer, not a touch, so the move never starts for a finger.window_frame.rson_touch/touch_move,begin_move_drag_for_devicewith the touch's device and serial, #7 #9) and its touch resize edges look upMAIN_WINDOWonly (src-tauri/src/window_frame.rs:1110-1205). The call window never gets the touch move, while the page-side resize edges frominstallWindowFramestill react.Fix: make
on_touch/touch_move/begin_resizework per window (take the label), hook them on the call windows, and haveCallWindowPage.drag()usewindow_touch_movewhen the press is a touch (pointerType === 'touch'), asviews/empty-space.tsdoes for the main window. The same likely applies to the console and page windows.Thanks for tracking this down. On Linux, the touch handling made for the main window (#7, #9) was attached only to the main window. The call window draws its own title bar, so it has no system frame, and Tauri's built-in touch handlers stayed active on it. Those handlers start a resize whenever a finger comes within 5px of the border, including while it is dragging. Meanwhile, the tile's move (startDragging) follows the mouse pointer and never starts for a finger. Now every call window (and XML console window) gets the same per-window touch handling as the main window. A finger dragging the tile or the header bar moves that window through the touch's own device. A finger on an edge resizes the window once, and only a window that can be resized, so never the tile. The mouse works as before, and nothing changes on Windows, macOS or Android. Released in another.im 0.8.0-beta4 (forge page "another.im 0.8", all platforms but Mac) on libtacky 1.2.0-beta4. Please check it with a finger on both X11 and Wayland: drag the tile, tap it to restore, drag the call window's header, and resize from an edge.