Changeset View
Changeset View
Standalone View
Standalone View
src/view/kateviewhelpers.cpp
Context not available. | |||||
284 | } | 284 | } | ||
---|---|---|---|---|---|
285 | 285 | | |||
286 | if (m_showMiniMap) { | 286 | if (m_showMiniMap) { | ||
287 | if (m_leftMouseDown) { | 287 | if (m_leftMouseDown && | ||
288 | e->pos().y() > m_mapGroveRect.top() && | ||||
289 | e->pos().y() < m_mapGroveRect.bottom()) | ||||
290 | { | ||||
288 | // if we show the minimap left-click jumps directly to the selected position | 291 | // if we show the minimap left-click jumps directly to the selected position | ||
289 | int newVal = (e->pos().y()-m_mapGroveRect.top()) / (double)m_mapGroveRect.height() * (double)(maximum()+pageStep()) - pageStep()/2; | 292 | int newVal = (e->pos().y()-m_mapGroveRect.top()) / (double)m_mapGroveRect.height() * (double)(maximum()+pageStep()) - pageStep()/2; | ||
290 | newVal = qBound(0, newVal, maximum()); | 293 | newVal = qBound(0, newVal, maximum()); | ||
Context not available. |