mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5101 clang-format: Adjusted penalties
Use lower absolute values to improve control of behavior
This commit is contained in:
@@ -138,8 +138,7 @@ RiuComparisonViewMover::DragState RiuComparisonViewMover::findHandleUnderMouse(
|
||||
int height = viewerHeight * normalizedComparisonRect.height();
|
||||
int bottomEdgePosQt = height - viewerHeight * normalizedComparisonRect.min().y();
|
||||
|
||||
if ( ( leftEdgePos - handleThickness * 0.4 ) < mousePos.x() &&
|
||||
mousePos.x() < ( leftEdgePos + handleThickness * 0.5 ) &&
|
||||
if ( ( leftEdgePos - handleThickness * 0.4 ) < mousePos.x() && mousePos.x() < ( leftEdgePos + handleThickness * 0.5 ) &&
|
||||
( bottomEdgePosQt - 8 * handleThickness ) < mousePos.y() &&
|
||||
mousePos.y() < ( bottomEdgePosQt - 2 * handleThickness ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user