mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-22 03:49:18 +02:00
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:
File diff suppressed because one or more lines are too long
+1
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user