mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-02 12:15:36 +02:00
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.