mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb+LibWebView+WebContent: Reset pinch-to-zoom state on Ctrl/Cmd+0
This commit is contained in:
committed by
Alexander Kalenik
parent
eb4c616974
commit
835081d66e
Notes:
github-actions[bot]
2025-10-10 13:39:13 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/835081d66e2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6430 Reviewed-by: https://github.com/gmta Reviewed-by: https://github.com/konradekk
@@ -2769,4 +2769,12 @@ void Navigable::scroll_viewport_by_delta(CSSPixelPoint delta)
|
||||
doc->set_needs_display(InvalidateDisplayList::No);
|
||||
}
|
||||
|
||||
void Navigable::reset_zoom()
|
||||
{
|
||||
auto document = active_document();
|
||||
if (!document)
|
||||
return;
|
||||
document->visual_viewport()->reset();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user