summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2018-04-16 08:26:07 (GMT)
committerjunsu choi <jsuya.choi@samsung.com>2018-04-16 08:30:12 (GMT)
commitc1ecd7f17f893c45d4c9f4cf5d603e510a76dfb5 (patch)
tree4042aefd2f54a580860f83e9cabe1f638741ab5e
parent91d44c6d2406f7a0425a0e337aa6c7bcf907177f (diff)
downloadefl-theme-tizen-mobile-c1ecd7f17f893c45d4c9f4cf5d603e510a76dfb5.zip
efl-theme-tizen-mobile-c1ecd7f17f893c45d4c9f4cf5d603e510a76dfb5.tar.gz
efl-theme-tizen-mobile-c1ecd7f17f893c45d4c9f4cf5d603e510a76dfb5.tar.bz2
SIGNAL_EMIT don't work in sequence with transition. Don't know the exact reason. However, separating SIGNAL_EMIT program will work normally. The operation of the sequence is not completely guaranteed. So separation is stable. Change-Id: I45c522d1c254b280734a94a59e6305f02eaa35d7
-rw-r--r--mobile/widgets/hover.edc34
1 files changed, 25 insertions, 9 deletions
diff --git a/mobile/widgets/hover.edc b/mobile/widgets/hover.edc
index 1d6f700..51f09db 100644
--- a/mobile/widgets/hover.edc
+++ b/mobile/widgets/hover.edc
@@ -63,6 +63,14 @@ group { name: "elm/hover/base/default";
GLIDE_EASE_OUT_SCRIPT(PART:"elm.swallow.slot.bottom", "right_visible", "right");
}
}
+
+ public hide_finished_timer_id = 0;
+
+ public hide_finished_timer(val) {
+ run_program(PROGRAM:"hide_finished");
+ run_program(PROGRAM:"hide_state_change_finished");
+ cancel_timer(hide_finished_timer_id);
+ }
}
parts {
swallow { "elm.swallow.offset"; scale;
@@ -200,17 +208,25 @@ group { name: "elm/hover/base/default";
}
program {
signal: "elm,action,hide"; source: "elm";
- sequence {
- action: STATE_SET "default";
- transition: GLIDE_EASE_OUT(0.3);
- target: "clipper";
- //
- action: STATE_SET "default";
- targets: "clipper_top" "clipper_bottom";
- //
- action: SIGNAL_EMIT "elm,action,hide,finished" "elm";
+ script {
+ new timer_id;
+ run_program(PROGRAM:"hide_state_change");
+ timer_id = timer(0.3, "hide_finished_timer", 1);
+ set_int(hide_finished_timer_id, timer_id);
}
}
+ program { "hide_state_change";
+ action: STATE_SET "default";
+ target: "clipper";
+ transition: GLIDE_EASE_OUT(0.3);
+ }
+ program { "hide_state_change_finished";
+ action: STATE_SET "default";
+ targets: "clipper_top" "clipper_bottom";
+ }
+ program { "hide_finished";
+ action: SIGNAL_EMIT "elm,action,hide,finished" "elm";
+ }
program {
signal: "elm,action,slot,top,show"; source: "elm";
sequence {