nowinandroid icon indicating copy to clipboard operation
nowinandroid copied to clipboard

Add drag feature

Open tiwiz opened this issue 1 year ago • 5 comments

Add Drag feature to article title. This will allow for sharing the content across apps.

https://github.com/user-attachments/assets/15e6fbf2-9fe4-4def-9c5b-50748c8c6581

tiwiz avatar Jul 22 '24 15:07 tiwiz

This feature is for multi-window user, is there any way to check the window state? For just activate it when user in multi-window.

Jaehwa-Noh avatar Jul 23 '24 03:07 Jaehwa-Noh

There is an API to detect if the app is running in multi-window environment, but I would rather not use it: many OEMs have features (like shelves, or similar) that allow users to Drag and item to a temporary part and drop it once they change app, so only enabling this feature in multi-window would limit those use-cases as well

tiwiz avatar Jul 23 '24 08:07 tiwiz

I got a point. Thank you.

Jaehwa-Noh avatar Jul 23 '24 11:07 Jaehwa-Noh

Screen_recording_20240730_102043.webm

I found a bug, drag and drop works only once. Is this bug origin from drag and drop function?

Jaehwa-Noh avatar Jul 30 '24 01:07 Jaehwa-Noh

Good catch! I think it might have something to do with scrollable container, rather than draggableSource, as I was able to init the feature multiple times. Let me investigate further

EDIT: we have a bug tracking the issue open.

tiwiz avatar Jul 30 '24 05:07 tiwiz

Nice one! LGTM

danybony avatar Aug 29 '24 15:08 danybony