mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
QuickShow: Add reset zoom action to toolbar
When zoom reset also reset pan origin
This commit is contained in:
parent
bf3d98012a
commit
ea1ebe8662
Notes:
sideshowbarker
2024-07-19 05:37:04 +09:00
Author: https://github.com/asliturk
Commit: ea1ebe8662
2 changed files with 5 additions and 1 deletions
|
@ -127,6 +127,9 @@ void QSWidget::set_scale(int scale)
|
|||
if (scale > 1000)
|
||||
scale = 1000;
|
||||
|
||||
if (scale == 100)
|
||||
m_pan_origin = { 0, 0 };
|
||||
|
||||
m_scale = scale;
|
||||
relayout();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue