diff --git a/src/app/ui/dynamics_popup.cpp b/src/app/ui/dynamics_popup.cpp index c2e3dda96..bdaa3d42a 100644 --- a/src/app/ui/dynamics_popup.cpp +++ b/src/app/ui/dynamics_popup.cpp @@ -1,5 +1,5 @@ // Aseprite -// Copyright (C) 2020-2023 Igara Studio S.A. +// Copyright (C) 2020-2024 Igara Studio S.A. // // This program is distributed under the terms of // the End-User License Agreement for Aseprite. @@ -166,7 +166,9 @@ private: break; auto mouseMsg = static_cast(msg); - const gfx::Rect rc = bounds(); + gfx::Rect rc = bounds(); + rc.shrink(border()); + rc.shrink(gfx::Border(3, 0, 3, 1) * guiscale()); float u = (mouseMsg->position().x - rc.x) / float(rc.w); u = std::clamp(u, 0.0f, 1.0f); switch (capture) {