mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb+LibWebView+WebContent: Reset pinch-to-zoom state on Ctrl/Cmd+0
This commit is contained in:
parent
eb4c616974
commit
835081d66e
Notes:
github-actions[bot]
2025-10-10 13:39:13 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 835081d66e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6430
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/konradekk
8 changed files with 26 additions and 0 deletions
|
|
@ -1226,6 +1226,12 @@ void ConnectionFromClient::set_system_visibility_state(u64 page_id, Web::HTML::V
|
|||
page->page().top_level_traversable()->set_system_visibility_state(visibility_state);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::reset_zoom(u64 page_id)
|
||||
{
|
||||
if (auto page = this->page(page_id); page.has_value())
|
||||
page->page().top_level_traversable()->reset_zoom();
|
||||
}
|
||||
|
||||
void ConnectionFromClient::js_console_input(u64 page_id, String js_source)
|
||||
{
|
||||
auto page = this->page(page_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue