diff options
author | Marius Stanciu <stanciumarius94@gmail.com> | 2016-08-07 20:21:23 +0300 |
---|---|---|
committer | Marius Stanciu <stanciumarius94@gmail.com> | 2016-08-07 20:21:23 +0300 |
commit | 24f4dc97396f3c4d2ba7bcf8f1750419c1766b58 (patch) | |
tree | 8099c4be879a76670859332e679e1a49179c844a | |
parent | b48d0fd825c5ed501c562831145744b48235d079 (diff) | |
download | libchamplain-24f4dc97396f3c4d2ba7bcf8f1750419c1766b58.tar.gz |
Ensure sample_user_layer_at_pos returns a reactive user_layers child.
-rw-r--r-- | champlain/champlain-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c index 2fd4688..9ce7c4a 100644 --- a/champlain/champlain-view.c +++ b/champlain/champlain-view.c @@ -1703,7 +1703,7 @@ sample_user_layer_at_pos (ChamplainView *view, CLUTTER_PICK_REACTIVE, x, y); /* If no reactive actor is found on top of the clone, return NULL */ - if (retval == priv->viewport || retval == priv->kinetic_scroll) + if (!clutter_actor_contains (priv->user_layers, retval)) return NULL; return retval; |