@christianriedl/media 1.0.57 → 1.0.58
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 +16 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { inject, ref, reactive, computed, onMounted, onBeforeMount, onUnmounted, nextTick, watch } from 'vue';
|
|
3
3
|
import { useRouter, useRoute } from 'vue-router';
|
|
4
|
-
import { IAppState, IAppConfig, Dictionary, Helper, appStateSymbol, appConfigSymbol } from '@christianriedl/utils';
|
|
4
|
+
import { IAppState, IAppConfig, EDevice, EBrowser, Dictionary, Helper, appStateSymbol, appConfigSymbol } from '@christianriedl/utils';
|
|
5
5
|
import { EMediaType, IPictureFile, MediaService, IMediaAppConfig, EPictureQuality, getMediaSymbol } from '@christianriedl/media';
|
|
6
6
|
|
|
7
7
|
const router = useRouter();
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
let gpsLng: number[];
|
|
31
31
|
let gpsLat: number[];
|
|
32
32
|
let mouseDownTime: number = 0;
|
|
33
|
+
let mouseTimer: number = -1;
|
|
33
34
|
|
|
34
35
|
watch([appState.bodyHeight, appState.pageWidth], () => {
|
|
35
36
|
width.value = appState.pageWidth.value;
|
|
@@ -124,6 +125,20 @@
|
|
|
124
125
|
});
|
|
125
126
|
}
|
|
126
127
|
function onClick() {
|
|
128
|
+
if (appState.device == EDevice.iPad) {
|
|
129
|
+
if (mouseTimer >= 0) { // 2. click
|
|
130
|
+
window.clearTimeout(mouseTimer);
|
|
131
|
+
onKeyClick("KeyF");
|
|
132
|
+
mouseTimer = -1;
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
mouseTimer = window.setTimeout(() => {
|
|
136
|
+
mouseTimer = -1;
|
|
137
|
+
keyDialog.value = true;
|
|
138
|
+
}, 500);
|
|
139
|
+
}
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
127
142
|
const msecDiff = new Date().getTime() - mouseDownTime;
|
|
128
143
|
if (msecDiff < 500)
|
|
129
144
|
keyDialog.value = true;
|