mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 09:40:19 +00:00
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:
parent
e66ec84c1e
commit
bf454e948d
@ -10089,7 +10089,7 @@ gtk_widget_do_pick (GtkWidget *widget,
|
|||||||
|
|
||||||
if (child_priv->transform)
|
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;
|
graphene_point_t transformed_p;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user