GNOME Bugzilla – Bug 656894
Rotating a drag handle makes it go away from the stage
Last modified: 2011-08-19 12:44:48 UTC
Using ClutterDragAction, if you add a drag handle to the stage on drag-begin, it'll work nicely, but if you rotate that actor, it'll go away from the stage when you start moving the pointer. This is reproducible in test-drag with the attached patch. Note you need to shift-drag in order to test-drag to use a drag handle.
Created attachment 194215 [details] rotate the drag handle
same as bug 653101 sadly, this means that DragAction won't work with transformed actors unless we changed the ::drag-motion default implementation. for your particular use case, and since you already have a sub-class of Texture, I'd override the paint() virtual and paint the texture quad flipped (see cogl_rectangle_with_texture_coords() in the Cogl documentation) instead of flipping the actor itself. this way, the actor is going to behave like the scenegraph expects, at least until we figure out a way to allow incremental movement even when transformed. *** This bug has been marked as a duplicate of bug 653101 ***
Thanks for the hint, I'm doing that and it works nicely!