@fy-/fws-vue 2.1.0 → 2.1.2

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.
@@ -111,12 +111,12 @@ const modelValueSrc = computed(() => {
111
111
  const start = reactive({ x: 0, y: 0 });
112
112
 
113
113
  const touchStart = (event: TouchEvent) => {
114
- event.preventDefault();
114
+ // Remove event.preventDefault() to prevent blocking touch events on buttons
115
+ // event.preventDefault();
115
116
  const touch = event.touches[0];
116
117
  start.x = touch.screenX;
117
118
  start.y = touch.screenY;
118
119
  };
119
-
120
120
  const touchEnd = (event: TouchEvent) => {
121
121
  const touch = event.changedTouches[0];
122
122
  const end = { x: touch.screenX, y: touch.screenY };
@@ -250,12 +250,12 @@ onUnmounted(() => {
250
250
  <div
251
251
  v-if="true"
252
252
  :key="`image-display-${modelValue}`"
253
- @touchstart="touchStart"
254
- @touchend="touchEnd"
255
253
  class="flex-1 w-full max-w-full flex flex-col items-center justify-center absolute inset-0 z-[2]"
256
254
  >
257
255
  <div
258
256
  class="flex-1 w-full max-w-full flex items-center justify-center"
257
+ @touchstart="touchStart"
258
+ @touchend="touchEnd"
259
259
  >
260
260
  <template
261
261
  v-if="videoComponent && isVideo(images[modelValue])"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "2.1.00",
3
+ "version": "2.1.02",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {