diff --git a/ImSequencer.cpp b/ImSequencer.cpp index 3c7e4bf8..b1d9ba91 100644 --- a/ImSequencer.cpp +++ b/ImSequencer.cpp @@ -43,6 +43,8 @@ namespace ImSequencer bool containedClick = overBtn && btnRect.Contains(io.MouseClickedPos[0]); bool clickedBtn = containedClick && io.MouseReleased[0]; int btnColor = overBtn ? 0xAAEAFFAA : 0x77A3B2AA; + if (containedClick && io.MouseDownDuration[0] > 0) + btnRect.Expand(2.0f); float midy = pos.y + 16 / 2 - 0.5f; float midx = pos.x + 16 / 2 - 0.5f;