Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a GesturePropertyTransition #2074

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

leolost2605
Copy link
Member

@leolost2605 leolost2605 commented Sep 26, 2024

Introduces a GesturePropertyTransition. This allows us to remove a lot of boilerplate code. For now it is a simple API that pretty much is used as a drop in replacement for connecting own handlers. In the future it can be easily expanded upon for more powerful usage. The nudge animations (both in multitasking view and while on the desktop) are a bit different now and IMHO a bit better (they can be changed back or to something different though).

@leolost2605 leolost2605 marked this pull request as draft September 26, 2024 19:08
@leolost2605 leolost2605 marked this pull request as ready for review September 29, 2024 13:51
@leolost2605 leolost2605 requested a review from a team September 29, 2024 13:52
@leolost2605
Copy link
Member Author

leolost2605 commented Sep 29, 2024

Yeah that review request was a bit optimistic this still needs a few minor refinements:

  • Window clones start from outdated positions

@leolost2605
Copy link
Member Author

leolost2605 commented Oct 2, 2024

Ok this should now finally be ready for review :)

* Emitted when all animations are finished that is when the property has reached the target value
* either via gesture or via easing or combined.
*/
public signal void done ();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can see this signal is used only inside the class, the users of the class seem to use done_callback. Should this signal be private instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants