Fix picking with transforms

When transforms include scales, we weren't picking
children properly. The special-case in gtk_widget_do_pick
only applies to 2D translations.
This commit is contained in:
Matthias Clasen 2021-05-12 20:53:41 -04:00
parent e66ec84c1e
commit bf454e948d

View File

@ -10089,7 +10089,7 @@ gtk_widget_do_pick (GtkWidget *widget,
if (child_priv->transform)
{
if (gsk_transform_get_category (child_priv->transform) >= GSK_TRANSFORM_CATEGORY_2D_AFFINE)
if (gsk_transform_get_category (child_priv->transform) >= GSK_TRANSFORM_CATEGORY_2D_TRANSLATE)
{
graphene_point_t transformed_p;