Fixed: #2400 Transforming - buttons must use hittest frame outline

This commit is contained in:
Jindra Petřík
2025-04-19 20:14:59 +02:00
parent f5f1d73b92
commit f843c628b1
3 changed files with 20 additions and 2 deletions

View File

@@ -1296,6 +1296,9 @@ public class Timeline {
renderContext.stateUnderCursor.add(layer);
}
} else if (absMat.transform(new ExportRectangle(boundRect)).contains(cursorPositionInView)) {
if ((drawable instanceof ButtonTag) && !renderContext.enableButtons) {
dframe = ButtonTag.FRAME_HITTEST;
}
Shape shape = drawable.getOutline(true, dframe, dtime, layer.ratio, renderContext, absMat, true, viewRect, unzoom);
if (shape.contains(cursorPositionInView)) {
renderContext.stateUnderCursor.add(layer);