add blocker rect to catch mouse events on slider/controls while hidden

This commit is contained in:
zmike 2014-03-09 17:36:41 -04:00
parent 2094ab2799
commit 06b20622ea
1 changed files with 13 additions and 0 deletions

View File

@ -591,6 +591,17 @@ collections {
rel1.relative: 0 1;
}
}
part { name: "control_events_clip"; type: RECT;
description { state: "default";
rel1.to: EMPC_BASE_SWALLOW_POSITION;
rel2.to: EMPC_BASE_SWALLOW_CONTROLS;
color: 0 0 0 0;
}
description { state: "visible";
inherit: "default";
visible: 0;
}
}
part { name: EMPC_BASE_SWALLOW_FILESYSTEM; type: SWALLOW;
description { state: "default";
fixed: 1 1;
@ -794,6 +805,7 @@ collections {
action: STATE_SET "visible" 0.0;
target: EMPC_BASE_SWALLOW_CONTROLS;
target: EMPC_BASE_SWALLOW_POSITION;
target: "control_events_clip";
transition: LINEAR 0.2 CURRENT;
after: "controls_show_done";
}
@ -811,6 +823,7 @@ collections {
action: STATE_SET "default" 0.0;
target: EMPC_BASE_SWALLOW_CONTROLS;
target: EMPC_BASE_SWALLOW_POSITION;
target: "control_events_clip";
transition: LINEAR 0.2 CURRENT;
after: "controls_hide_done";
}