After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698674 - Improve ClutterZoomAction behavior
Improve ClutterZoomAction behavior
Status: RESOLVED FIXED
Product: clutter
Classification: Platform
Component: ClutterAction
1.14.x
Other Linux
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks:
 
 
Reported: 2013-04-23 15:59 UTC by Lionel Landwerlin
Modified: 2013-04-23 16:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Improved ClutterZoomAction (3.82 KB, patch)
2013-04-23 16:01 UTC, Lionel Landwerlin
committed Details | Review

Description Lionel Landwerlin 2013-04-23 15:59:38 UTC
In the following video, here is how the ClutterZoomAction currently behaves :

https://www.youtube.com/watch?v=v9tLjzVZIU4

Here is how it behaves once you apply the attached patch :

https://www.youtube.com/watch?v=mZqw6lqTCpo

The trick here is to use the clutter_actor_set_pivot_point() function instead of computing the delta to move the actor from given the point of focus.
Comment 1 Lionel Landwerlin 2013-04-23 16:01:52 UTC
Created attachment 242255 [details] [review]
Improved ClutterZoomAction
Comment 2 Emmanuele Bassi (:ebassi) 2013-04-23 16:07:27 UTC
Review of attachment 242255 [details] [review]:

seems okay.
Comment 3 Lionel Landwerlin 2013-04-23 16:42:37 UTC
Pushed.