Fix initial IV zoom level.

Fixes #28600.
This commit is contained in:
John Preston
2024-11-01 22:24:16 +04:00
parent 8447b95c50
commit d568cab2fc
2 changed files with 12 additions and 5 deletions

View File

@@ -655,7 +655,9 @@ void Controller::createWebview(const Webview::StorageId &storageId) {
if (const auto webviewZoomController = raw->zoomController()) {
webviewZoomController->zoomValue(
) | rpl::start_with_next([this](int value) {
_delegate->ivSetZoom(value);
if (value > 0) {
_delegate->ivSetZoom(value);
}
}, lifetime());
_delegate->ivZoomValue(
) | rpl::start_with_next([=](int value) {