Fix floating camera drag/resize not working on iOS/iPadOS (#687)

The embedded camera viewer only handled mouse events (mousedown,
  mousemove, mouseup) for window dragging and resizing. On iOS/iPadOS,
  touch input doesn't trigger mouse events, so the camera window
  couldn't be repositioned — touch just scrolled the page underneath.

  Add touch event handlers (touchstart, touchmove, touchend, touchcancel)
  alongside mouse handlers for both the header drag handle and the
  bottom-right resize handle. Uses preventDefault on touchmove to
  prevent page scrolling during drag.
This commit is contained in:
maziggy
2026-03-13 12:44:51 +01:00
parent 220717f174
commit cfec18eca4
4 changed files with 87 additions and 43 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -23,7 +23,7 @@
<!-- Splash screens for iOS -->
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
<script type="module" crossorigin src="/assets/index-C7vUGUA4.js"></script>
<script type="module" crossorigin src="/assets/index-BwyddZpl.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index--YKaUCwD.css">
</head>
<body>