diff --git a/dashboard-ui/bower_components/paper-drawer-panel/paper-drawer-panel.html b/dashboard-ui/bower_components/paper-drawer-panel/paper-drawer-panel.html index 71b4281098..833380fcdf 100644 --- a/dashboard-ui/bower_components/paper-drawer-panel/paper-drawer-panel.html +++ b/dashboard-ui/bower_components/paper-drawer-panel/paper-drawer-panel.html @@ -552,6 +552,13 @@ To change the drawer container when it's in the right side: this._setPeeking(false); } + var dy = event.detail.dy; + var absDy = Math.abs(dy); + + if (absDy >= 70) { + // Ignore trackx until we move past the edge peek. + return; + } this._moveDrawer(this._translateXForDeltaX(dx)); } }, @@ -565,10 +572,14 @@ To change the drawer container when it's in the right side: sharedPanel = null; this._moveDrawer(null); + var dx = event.detail.dx; + var dy = event.detail.dy; + var absDy = Math.abs(dy); + if (this.rightDrawer) { this[xDirection ? 'closeDrawer' : 'openDrawer'](); } else { - this[xDirection || event.detail.dx > -80 ? 'openDrawer' : 'closeDrawer'](); + this[xDirection || dx > -80 || absDy >= 70 ? 'openDrawer' : 'closeDrawer'](); } } }, diff --git a/dashboard-ui/cordova/android/mediasession.js b/dashboard-ui/cordova/android/mediasession.js index b8576f0e57..4f79e3996d 100644 --- a/dashboard-ui/cordova/android/mediasession.js +++ b/dashboard-ui/cordova/android/mediasession.js @@ -3,9 +3,12 @@ // Reports media playback to the device for lock screen control var currentPlayer; - var lastPlayerState; var lastUpdateTime = 0; + function allowLocalPlayer() { + return false; + } + function updatePlayerState(state, eventName) { if (!state.NowPlayingItem) { @@ -16,7 +19,7 @@ var isLocalPlayer = MediaController.getPlayerInfo().isLocalPlayer || false; // Local players do their own notifications - if (isLocalPlayer) { + if (isLocalPlayer && !allowLocalPlayer()) { return; } @@ -25,8 +28,6 @@ eventName = 'positionchange'; } - lastPlayerState = state; - var playState = state.PlayState || {}; var nameHtml = MediaController.getNowPlayingNameHtml(state.NowPlayingItem) || ''; @@ -135,6 +136,10 @@ releaseCurrentPlayer(); + if (player.isLocalPlayer && !allowLocalPlayer()) { + return; + } + currentPlayer = player; console.log('binding remotecontrols to MediaPlayer'); diff --git a/dashboard-ui/cordova/android/vlcplayer.js b/dashboard-ui/cordova/android/vlcplayer.js index 54d83dd883..598ea14e81 100644 --- a/dashboard-ui/cordova/android/vlcplayer.js +++ b/dashboard-ui/cordova/android/vlcplayer.js @@ -120,9 +120,12 @@ return false; }; - self.destroy = function () { + self.cleanup = function (destroyRenderer) { + + if (destroyRenderer !== false) { + AndroidVlcPlayer.destroyVlc(); + } - AndroidVlcPlayer.destroyVlc(); playerState = {}; }; diff --git a/dashboard-ui/css/librarymenu.css b/dashboard-ui/css/librarymenu.css index 1b919d2c4b..dd9039f81e 100644 --- a/dashboard-ui/css/librarymenu.css +++ b/dashboard-ui/css/librarymenu.css @@ -53,11 +53,17 @@ position: fixed !important; bottom: 0; height: auto !important; + /* Need to reset this because it causes the entire panel to be draggable in safari */ + box-sizing: initial !important; +} + +.verticalScrollingDrawer { overflow-y: auto !important; -webkit-overflow-scrolling: touch; overflow-x: hidden; - /* Need to reset this because it causes the entire panel to be draggable in safari */ - box-sizing: initial !important; +} + +.dragging .mainDrawerPanel #drawer { } .mainDrawerPanel #main { diff --git a/dashboard-ui/css/site.css b/dashboard-ui/css/site.css index d0d9e07b16..7041d0819c 100644 --- a/dashboard-ui/css/site.css +++ b/dashboard-ui/css/site.css @@ -749,10 +749,6 @@ h1 .imageLink { padding-bottom: 160px; } -.dashboardPanel .ui-panel-inner { - padding: 0; -} - .appLinks a { text-decoration: none !important; } diff --git a/dashboard-ui/css/tileitem.css b/dashboard-ui/css/tileitem.css index bd6c06597e..bcaa6831e6 100644 --- a/dashboard-ui/css/tileitem.css +++ b/dashboard-ui/css/tileitem.css @@ -77,13 +77,4 @@ .smallPosterTileItem { width: 30.5%; } -} - -.posterItemText { - text-overflow: ellipsis; - overflow: hidden; - text-wrap: none; - white-space: nowrap; - padding: 5px 4px 4px; - font-weight: 400; -} +} \ No newline at end of file diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index 53bbf1d676..885d088ec5 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -4,7 +4,7 @@ -
+