Open aleksusklim opened 4 years ago
Hey there!
This issue will be automatically closed in 7 days if there would be no activity. We therefore assume that the user has lost interest or resolved the problem on their own.
Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.
Thanks!
Э, я те сча закрою, ага!
Hey there!
This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.
Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.
Thanks!
Брысь!
Telegram Desktop 2.7.4, issue still relevant.
I'd accept a PR for that one.
Is your feature request related to a problem?
Often photos have a long textual description, or sent as album. In this case, after clicking on it, the internal image viewer will show both description (shortened) and two of other photos from this album.
This interactive information will stay on screen until some timeout (about 3 sec) and then slowly fade. But only if no user mouse input was detected! So, for example, if you want to pan zoomed-in image, you will trigger displaying of this interface, which might overlap some important parts of the picture.
Waiting for it to disappear every time is not convenient.
Describe the solution you'd like
Disable any onscreen controls in image viewer if this picture was zoomed-in. Especially right after pressing the middle mouse button.
When a photo zoom is restored to default (second middle click) or just made smaller than screen-fit size (Ctrl + Wheel Down) the behavior of on-screen controls should remain as it is currently (instantly visible with fade timeout).
Describe alternatives you've considered
There is another possible way to hide all interactive controls: by implementing a dedicated button that will toggle them.
For example, it could be a square labeled "i" ('information' icon), located in top-left corner of this overlay, just like 'X' button is located at tor-right corner currently.
By default after restart of Telegram Desktop client, the state of overlay should be globally visible. This 'i'-button will be visible too (and will fade-out just like other buttons).
When clicked, all of other buttons, links and texts on overlay should disappear, but only this button ought to stay on screen (semi-transparent like 'X'-close) and continue to conform the 3-sec timeout (so eventually it will fade-out, but mouse move will restore it).
Second click on 'i'-button will toggle display of overlay back. The state of overlay visibility should be kept global (for all images and chars) until Telegram Desktop restarts.
When main buttons on overlay are hidden, the image viewer should still accept any keyboard shortcuts to navigate: for example, Left/Right arrow to open next photo, Ctrl+S to save, and Escape to exit picture view mode.
Another possibility would be a context menu entry for image overlay, titled "Hide controls" initially, but "Show controls" when this function was already used to hide the overlay.
Configuration
Operating system: Windows 7 SP1 Version of Telegram Desktop: 2.1.6 Used theme: Day
Additional context
Here are some screenshots of the issue: (with 125% interface scale)
photo with description:
Initial:
Default: (Note that semi-transparent box with description text and links could still severely interfere with image content)
Timeout: (And you should hold your mouse very still, to be able to read it like this)
photo albums:
Initial:
Default: (Note that almost opaque album previews also interfere with content)
Zoomed to the bottom: (The main issue: even after zooming in picture manually, this unnecessary overlay still visible)
So it would be very logically to hide overlays on zoom, since if user had zoomed – then he want to see a part of image, and not the text/album previews, which should become visible again after zooming out.