[libhandy/wip/exalm/leaflet-fixes: 2/2] stackable-box: Don't skip the gesture with 0 transition duration
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/wip/exalm/leaflet-fixes: 2/2] stackable-box: Don't skip the gesture with 0 transition duration
- Date: Fri, 29 May 2020 09:51:53 +0000 (UTC)
commit 3976c99e73f038d30dc7b0e4eb05a147dfd7a0f5
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri May 29 14:49:33 2020 +0500
stackable-box: Don't skip the gesture with 0 transition duration
The transition-duration property only matters for programmatic transitions.
For the gesture, the duration is determined by HdySwipeTracker, or is 0 if
animations are disabled system-wide, so skipping it in this case is wrong.
Signed-off-by: Alexander Mikhaylenko <alexm gnome org>
src/hdy-stackable-box.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/hdy-stackable-box.c b/src/hdy-stackable-box.c
index 24398349..7352cd64 100644
--- a/src/hdy-stackable-box.c
+++ b/src/hdy-stackable-box.c
@@ -499,9 +499,10 @@ hdy_stackable_box_start_child_transition (HdyStackableBox *self,
GtkWidget *widget = GTK_WIDGET (self->container);
if (gtk_widget_get_mapped (widget) &&
- (hdy_get_enable_animations (widget) || self->child_transition.is_gesture_active) &&
+ ((hdy_get_enable_animations (widget) &&
+ transition_duration != 0) ||
+ self->child_transition.is_gesture_active) &&
transition_type != HDY_STACKABLE_BOX_TRANSITION_TYPE_NONE &&
- transition_duration != 0 &&
self->last_visible_child != NULL &&
/* Don't animate child transition when a mode transition is ongoing. */
self->mode_transition.tick_id == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]