kfunk accepted this revision. kfunk added a comment. This revision is now accepted and ready to land.
+1 on the behavior change, this is a much desired change :) INLINE COMMENTS > kateviewhelpers.cpp:204 > + if (m_leftMouseDown) { > + int newVal = ((e->pos().y()-m_mapGroveRect.top()) / > (double)m_mapGroveRect.height()) * (double)(maximum()+pageStep()) - > pageStep()/2; > + if (newVal < 0) newVal = 0; Style: `((a - b)) / ...` > kateviewhelpers.cpp:205 > + int newVal = ((e->pos().y()-m_mapGroveRect.top()) / > (double)m_mapGroveRect.height()) * (double)(maximum()+pageStep()) - > pageStep()/2; > + if (newVal < 0) newVal = 0; > + if (newVal > maximum()) newVal = maximum(); Use `qBound(...)`? REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D6086 To: sars, #ktexteditor, #kate, dhaumann, kfunk Cc: kfunk, broulik, kwrite-devel, #frameworks