@thewhateverapp/tile-sdk 0.13.24 → 0.13.25

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.
@@ -280,8 +280,8 @@ export function Slideshow({ images, intervalMs = 5000, autoAdvance = true, trans
280
280
  touchCurrentRef.current = { x: touch.clientX, y: touch.clientY };
281
281
  const deltaX = touch.clientX - touchStartRef.current.x;
282
282
  const deltaY = touch.clientY - touchStartRef.current.y;
283
- // Only start visual drag if horizontal movement dominates
284
- if (Math.abs(deltaX) > Math.abs(deltaY) && Math.abs(deltaX) > 5) {
283
+ // Only start visual drag if horizontal movement dominates (3px threshold for responsiveness)
284
+ if (Math.abs(deltaX) > Math.abs(deltaY) && Math.abs(deltaX) > 3) {
285
285
  e.preventDefault();
286
286
  e.stopPropagation();
287
287
  // Apply resistance at edges (can't drag past first/last)
@@ -318,11 +318,11 @@ export function Slideshow({ images, intervalMs = 5000, autoAdvance = true, trans
318
318
  const deltaX = touchCurrentRef.current.x - touchStartRef.current.x;
319
319
  const deltaY = touchCurrentRef.current.y - touchStartRef.current.y;
320
320
  const deltaTime = Date.now() - touchStartRef.current.time;
321
- // 30px minimum swipe distance, must be horizontal
322
- const minSwipeDistance = 30;
321
+ // 15px minimum swipe distance, must be horizontal (lowered for better sensitivity)
322
+ const minSwipeDistance = 15;
323
323
  const isHorizontalSwipe = Math.abs(deltaX) > Math.abs(deltaY);
324
324
  const isValidSwipe = Math.abs(deltaX) > minSwipeDistance && isHorizontalSwipe;
325
- const isQuickSwipe = deltaTime < 500 || Math.abs(deltaX) > 60;
325
+ const isQuickSwipe = deltaTime < 600 || Math.abs(deltaX) > 35;
326
326
  // Reset drag state before triggering transition
327
327
  setIsDragging(false);
328
328
  setDragOffset(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thewhateverapp/tile-sdk",
3
- "version": "0.13.24",
3
+ "version": "0.13.25",
4
4
  "description": "SDK for building interactive tiles on The Whatever App platform",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",