Skip to content

Commit

Permalink
Fix broken back-button during video playback
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Apr 26, 2016
1 parent 08ffbee commit cf1cc51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion glwskins/flat/pages/video.view
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,9 @@ widget(container_z, {
align: top;
widget(container_x, {
height: 3em;
BackButton($clone.showPlaydeck);
BackButton($clone.showPlaydeck, {
$self.close = true;
});
});
});
});
4 changes: 2 additions & 2 deletions glwskins/flat/theme.view
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@
}


#define BackButton(ENABLED=true) {
#define BackButton(ENABLED=true, EVENT=event("back")) {
widget(container_y, {
align: center;
width: 4em;
clickable: $ui.pointerVisible || ($ui.touch && ENABLED);
alpha: iir($ui.pointerVisible || ($ui.touch && ENABLED), 4);
onEvent(activate, event("back"));
onEvent(activate, EVENT);
navFocusable: false;
widget(icon, {
color: 0.5 + iir(isHovered(), 4);
Expand Down

0 comments on commit cf1cc51

Please sign in to comment.