FIRE-30873: Allow trackpad to adjust 3rd axis without mousedown

meow-7.2.2
Angeldark Raymaker 2024-10-20 00:08:42 +01:00
parent c997aaea3a
commit 3b6686778c
2 changed files with 5 additions and 2 deletions

View File

@ -472,13 +472,16 @@ bool FSVirtualTrackpad::handleRightMouseDown(S32 x, S32 y, MASK mask)
// pass wheel-clicks to third axis
bool FSVirtualTrackpad::handleScrollWheel(S32 x, S32 y, S32 clicks)
{
if (hasMouseCapture())
if (hasMouseCapture() || isPointInTouchArea(x, y))
{
if (_doingPinchMode)
_pinchValueZ -= clicks * WheelClickQuanta;
else
_valueZ -= clicks * WheelClickQuanta;
if (!hasMouseCapture())
onCommit();
return true;
}
else

View File

@ -644,7 +644,7 @@ width="565">
top_delta="15"
height="153"
width="153"
tool_tip="Change the rotation of the currently selected body part(s). Hold Ctrl to move slow. Roll the wheel while holding to adjust the 3rd axis"
tool_tip="Change the rotation of the currently selected body part(s). Hold Ctrl to move slow. Roll the wheel any time to adjust the 3rd axis"
pinch_mode="false"
infinite_scroll_mode="true"/>
<panel