@christianriedl/media 1.0.52 → 1.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/views/PhotoAlbumPage.vue +21 -6
package/package.json
CHANGED
|
@@ -128,6 +128,7 @@
|
|
|
128
128
|
async function onKey(ev: KeyboardEvent) {
|
|
129
129
|
switch (ev.code) {
|
|
130
130
|
case "Escape":
|
|
131
|
+
infoDialog.value = false;
|
|
131
132
|
router.back();
|
|
132
133
|
break;
|
|
133
134
|
case "ArrowLeft":
|
|
@@ -141,19 +142,29 @@
|
|
|
141
142
|
infoDialog.value = false;
|
|
142
143
|
break;
|
|
143
144
|
case "KeyI": // Info
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
if (infoDialog.value) {
|
|
146
|
+
infoDialog.value = false;
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
const item = items[index.value];
|
|
150
|
+
const exif = await mediaService.getExifInfo(item.DLNAParentID, item.DLNAID);
|
|
151
|
+
setMetaData(exif, item);
|
|
152
|
+
infoDialog.value = true;
|
|
153
|
+
}
|
|
148
154
|
break;
|
|
149
155
|
case "KeyC": // Continue
|
|
150
156
|
cycle.value = true;
|
|
151
157
|
break;
|
|
152
158
|
case "KeyF": // Fullscreen
|
|
159
|
+
infoDialog.value = false;
|
|
153
160
|
if (appState.fullScreen.value) {
|
|
154
161
|
if (window.document.exitFullscreen) {
|
|
155
162
|
await window.document.exitFullscreen();
|
|
156
|
-
appState.fullScreen.value = window.document.fullscreenElement
|
|
163
|
+
appState.fullScreen.value = !!window.document.fullscreenElement;
|
|
164
|
+
}
|
|
165
|
+
else if ((window.document as any).webkitExitFullscreen) {
|
|
166
|
+
(window.document as any).webkitExitFullscreen();
|
|
167
|
+
appState.fullScreen.value = false;
|
|
157
168
|
}
|
|
158
169
|
else
|
|
159
170
|
appState.fullScreen.value = false;
|
|
@@ -162,7 +173,11 @@
|
|
|
162
173
|
const mainEle = window.document.getElementsByTagName('main')[0];
|
|
163
174
|
if (mainEle.requestFullscreen) {
|
|
164
175
|
await mainEle.requestFullscreen();
|
|
165
|
-
appState.fullScreen.value = window.document.fullscreenElement
|
|
176
|
+
appState.fullScreen.value = !!window.document.fullscreenElement;
|
|
177
|
+
}
|
|
178
|
+
else if ((mainEle as any).webkitRequestFullScreen) {
|
|
179
|
+
(mainEle as any).webkitRequestFullScreen();
|
|
180
|
+
appState.fullScreen.value = true;
|
|
166
181
|
}
|
|
167
182
|
else
|
|
168
183
|
appState.fullScreen.value = true;
|