Mobile player max-height; Animation for context menu; Removing more <button>s for .button; Force reset playback position on end

This commit is contained in:
James Barnsley
2018-11-18 12:54:13 +13:00
parent 6341bbb1ac
commit 57c2782917
20 changed files with 10568 additions and 13711 deletions

View File

@ -64,12 +64,36 @@ const UIMiddleware = (function(){
case 'CLOSE_MODAL':
if (store.getState().ui.allow_reporting){
ReactGA.event({ category: 'Modal', action: 'Closed', label: null });
}
ReactGA.event({ category: 'Modal', action: 'Closed', label: null });
}
$('body').removeClass('modal-open')
next(action)
break
case 'HIDE_CONTEXT_MENU':
if (store.getState().ui.context_menu){
setTimeout(
() => {
store.dispatch(uiActions.removeContextMenu())
},
200
);
next(action);
}
break;
case 'HIDE_TOUCH_CONTEXT_MENU':
if (store.getState().ui.context_menu){
setTimeout(
() => {
store.dispatch(uiActions.removeTouchContextMenu())
},
200
);
next(action);
}
break;
case 'BROWSER_NOTIFICATION':
var notification = window.Notification || window.mozNotification || window.webkitNotification;