thunder icon indicating copy to clipboard operation
thunder copied to clipboard

configurable hold to peek delay

Open Kommynct opened this issue 11 months ago • 1 comments

Is Your Feature Request Related to a Problem?

Right now holding to peek takes twice as long as it should

Feature Description

I'd like to be able to configure the long-press delay

Alternative Solutions

A much shorter delay would be good for me but bad for accessibility, making it configurable makes everyone happy!

Additional Context

No response

Kommynct avatar Feb 17 '25 09:02 Kommynct

Just a dev note here: for image peeking, we are just implementing onLongPressStart, which I assume uses the default long-press duration for Flutter and/or Android. So I assume we'd have to do some digging around in order to customize this.

https://github.com/thunder-app/thunder/blob/6b8e789caac2fcd3e4886e5d5e9491666c140f0e/lib/shared/media_view.dart#L249-L265

micahmo avatar Feb 17 '25 14:02 micahmo