TelegramMessenger / Telegram-iOS

Telegram-iOS
5.4k stars 1.45k forks source link

Switch back/front camera bug in attachments #1396

Open villyGreen opened 1 month ago

villyGreen commented 1 month ago

Checklist

Description

When I go to attachments, then click on the camera preview, I can change the camera type (front and back), however when I multiple click on the change camera type button many times, the camera freezes and the screen is blurred if I change the mode to "video" or select current zoom type, then the camera reboots

Expected Behavior

The camera should not freeze when changing "camera mode"

Actual Behavior

When you press the "change camera mode" button multiple times, the camera freezes

Steps to Reproduce

  1. Go to attachments and open camera from camera-preview
  2. Multiple and fast touch on "change camera mode" button

Environment

Device: iPhone 11 Pro Max

iOS version: 17.4.1

App version: 10.12

https://github.com/TelegramMessenger/Telegram-iOS/assets/82367970/c93671b7-ef5f-427f-aa28-bb859005e408

Flexx97 commented 1 month ago

same issue