Telegram-X icon indicating copy to clipboard operation
Telegram-X copied to clipboard

3D Touch support is not consistent

Open Dubzer opened this issue 2 years ago • 0 comments

Expected

All context actions respect gesture classification and take less time when user applies stronger force on the screen of a supported device (such as Google Pixel 4 and later).

Actual

The timing of the long press when a stronger force is applied is not consistent throughout the app due to the use of a custom long press handler in some parts of it. For example, in an input field, the context menu appears faster when force is applied, but the chat preview takes just as long to appear.

Move information on implementation details for the app developers is at the end of this article: https://blog.research.google/2020/06/sensing-force-based-gestures-on-pixel-4.html.

API reference: https://developer.android.com/reference/android/view/MotionEvent.html#getClassification()

Tested on Pixel 6 Pro with Android build UQ1A.231205.015

Dubzer avatar Feb 01 '24 03:02 Dubzer