Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 77c312800a | |||
| 21e90b92dc |
@@ -253,11 +253,11 @@ void ImageWidget::setMTFParams(float low, float mid, float high)
|
||||
|
||||
void ImageWidget::setOffset(float dx, float dy)
|
||||
{
|
||||
m_dx = std::clamp(dx, 0.0f, m_imgWidth * m_scale - m_width);
|
||||
m_dx = std::clamp(dx, 0.0f, std::max(0.0f, m_imgWidth * m_scale - m_width));
|
||||
if(m_showThumbnails)
|
||||
m_dy = std::clamp(dy, 0.0f, (float)((m_thumbnailCount / (m_width / THUMB_SIZE_BORDER) + 2) * THUMB_SIZE_BORDER_Y - m_height));
|
||||
m_dy = std::clamp(dy, 0.0f, std::max(0.0f, (float)((m_thumbnailCount / (m_width / THUMB_SIZE_BORDER) + 2) * THUMB_SIZE_BORDER_Y - m_height)));
|
||||
else
|
||||
m_dy = std::clamp(dy, 0.0f, m_imgHeight * m_scale - m_height);
|
||||
m_dy = std::clamp(dy, 0.0f, std::max(0.0f, m_imgHeight * m_scale - m_height));
|
||||
updateScrollBars();
|
||||
update();
|
||||
}
|
||||
|
||||
@@ -48,6 +48,17 @@
|
||||
</screenshots>
|
||||
<content_rating type="oars-1.1"/>
|
||||
<releases>
|
||||
<release version="20230419" date="2023-04-19">
|
||||
<description>
|
||||
<ul>
|
||||
<li>Add file sorting</li>
|
||||
<li>Improved zoom and scrolling.</li>
|
||||
<li>Shift modify if zoom on mouse position or center</li>
|
||||
<li>Fix issue with XISF from NINA</li>
|
||||
<li>Fix crash in flatpak version</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
<release version="20230212" date="2023-02-12">
|
||||
<description>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user