From 56bfab6f1caf60947016f9dde740f3bc5597935a Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sat, 2 Jan 2021 13:49:16 +0100 Subject: [PATCH] Make dragging quads in the editor more sensitive to small mouse deltas Closes #963 --- src/game/editor/editor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 9eb8ab49a..a9412c846 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -1496,7 +1496,7 @@ void CEditor::DoSoundSource(CSoundSource *pSource, int Index) if(UI()->ActiveItem() == pID) { - if(m_MouseDeltaWx * m_MouseDeltaWx + m_MouseDeltaWy * m_MouseDeltaWy > 0.05f) + if(m_MouseDeltaWx * m_MouseDeltaWx + m_MouseDeltaWy * m_MouseDeltaWy > 0.0f) { if(s_Operation == OP_MOVE) { @@ -1635,7 +1635,7 @@ void CEditor::DoQuad(CQuad *q, int Index) if(UI()->ActiveItem() == pID) { - if(m_MouseDeltaWx * m_MouseDeltaWx + m_MouseDeltaWy * m_MouseDeltaWy > 0.05f) + if(m_MouseDeltaWx * m_MouseDeltaWx + m_MouseDeltaWy * m_MouseDeltaWy > 0.0f) { // check if we only should move pivot if(s_Operation == OP_MOVE_PIVOT) @@ -1901,7 +1901,7 @@ void CEditor::DoQuadPoint(CQuad *pQuad, int QuadIndex, int V) { if(!s_Moved) { - if(m_MouseDeltaWx * m_MouseDeltaWx + m_MouseDeltaWy * m_MouseDeltaWy > 0.05f) + if(m_MouseDeltaWx * m_MouseDeltaWx + m_MouseDeltaWy * m_MouseDeltaWy > 0.0f) s_Moved = true; }