mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
QuickShow: Add reset zoom action to toolbar
When zoom reset also reset pan origin
This commit is contained in:
committed by
Andreas Kling
parent
bf3d98012a
commit
ea1ebe8662
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user