From 0d2c9826be183a15b1431ba9cccf647da4451460 Mon Sep 17 00:00:00 2001 From: klockky Date: Sat, 23 May 2026 04:21:54 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20cap=20pixelRatio=20=D1=87=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B7=20=D1=81=D1=80=D0=B0=D0=B2=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B2=D0=BC=D0=B5=D1=81=D1=82=D0=BE=20.clamp()=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D1=82=D0=B8=D0=BF=D0=B0=20double?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/frontend/screens/chats/chat_screen.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/frontend/screens/chats/chat_screen.dart b/lib/frontend/screens/chats/chat_screen.dart index fa7cbcb..e9fccf5 100644 --- a/lib/frontend/screens/chats/chat_screen.dart +++ b/lib/frontend/screens/chats/chat_screen.dart @@ -1715,7 +1715,8 @@ class _LongPressBubbleState extends State<_LongPressBubble> { final origin = renderObject.localToGlobal(Offset.zero); final rect = origin & renderObject.size; - final dpr = MediaQuery.of(ctx).devicePixelRatio.clamp(1.0, 2.0); + final rawDpr = MediaQuery.of(ctx).devicePixelRatio; + final dpr = rawDpr > 2.0 ? 2.0 : rawDpr; final ui.Image snapshot; try {