@christianriedl/media 1.0.56 → 1.0.57

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@christianriedl/media",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "RIC media interfaces",
5
5
 
6
6
  "main": "dist/index.js",
@@ -29,6 +29,7 @@
29
29
  let origUrl = "";
30
30
  let gpsLng: number[];
31
31
  let gpsLat: number[];
32
+ let mouseDownTime: number = 0;
32
33
 
33
34
  watch([appState.bodyHeight, appState.pageWidth], () => {
34
35
  width.value = appState.pageWidth.value;
@@ -123,7 +124,15 @@
123
124
  });
124
125
  }
125
126
  function onClick() {
126
- keyDialog.value = true;
127
+ const msecDiff = new Date().getTime() - mouseDownTime;
128
+ if (msecDiff < 500)
129
+ keyDialog.value = true;
130
+ else
131
+ onKeyClick("KeyF");
132
+ mouseDownTime = 0;
133
+ }
134
+ function onMouseDown() {
135
+ mouseDownTime = new Date().getTime();
127
136
  }
128
137
  async function onKey(ev: KeyboardEvent) {
129
138
  switch (ev.code) {
@@ -315,7 +324,7 @@
315
324
  <v-container fluid :style="heightStyle" class="bg-grey-darken-3 pa-0">
316
325
  <v-carousel hide-delimiters :show-arrows="false" v-model="index"
317
326
  :width="width" :height="height" :cycle="cycle" :interval="interval"
318
- @click="onClick" @dblclick="onKeyClick('KeyF')" @update:modelValue="infoDialog = false">
327
+ @click="onClick" @mousedown="onMouseDown" @update:modelValue="infoDialog = false">
319
328
  <v-carousel-item v-for="item in items" :key="item.DLNAID">
320
329
  <img :src="getUrl(item)" :alt="item.Name" :width="getWidth(item)" :height="getHeight(item)" />
321
330
  </v-carousel-item>