[libhandy/wip/exalm/leaflet-fixes: 15/16] stackable-box: Don't skip the gesture with 0 transition duration
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/wip/exalm/leaflet-fixes: 15/16] stackable-box: Don't skip the gesture with 0 transition duration
- Date: Tue, 2 Jun 2020 10:43:19 +0000 (UTC)
commit f127a9184fc1ce313a4e940f0d97c7b497cfcfcc
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 e6e9b0f1..346cc924 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]