rect.setHeight(m_baseRect.height() + (m_targetRect.height() - m_baseRect.height()) * multiplier);
float scaleFactor = m_viewImpl->page()->viewSize().width() / rect.width();
- IntPoint scrollPosition(rect.x() * scaleFactor, rect.y() * scaleFactor);
+ IntPoint scrollPosition(ceil(rect.x() * scaleFactor), ceil(rect.y() * scaleFactor));
m_viewImpl->page()->scaleImage(scaleFactor, scrollPosition);
if (m_scaleIndex < 0)
EINA_SAFETY_ON_NULL_RETURN(m_viewImpl->page());
float scaleFactor = m_viewImpl->page()->viewSize().width() / m_targetRect.width();
- IntPoint scrollPosition(m_targetRect.x() * scaleFactor, m_targetRect.y() * scaleFactor);
+ IntPoint scrollPosition(ceil(m_targetRect.x() * scaleFactor), ceil(m_targetRect.y() * scaleFactor));
m_viewImpl->page()->scale(scaleFactor, scrollPosition);
m_isWorking = false;
}