mirror of
https://github.com/suitenumerique/meet.git
synced 2026-09-02 21:58:29 +00:00
fixup! ♻️(frontend) refactor screen share zoom pan with useMove and imperative DOM updates
This commit is contained in:
@@ -41,9 +41,7 @@ export const ScreenShareZoomControls = ({
|
|||||||
const [isFullscreen, setIsFullscreen] = useState(false)
|
const [isFullscreen, setIsFullscreen] = useState(false)
|
||||||
// Tracks whether this tile's container triggered fullscreen (vs another share's).
|
// Tracks whether this tile's container triggered fullscreen (vs another share's).
|
||||||
const wasThisTileFullscreen = useRef(false)
|
const wasThisTileFullscreen = useRef(false)
|
||||||
const [isFullscreenAvailable] = useState(
|
const isFullscreenAvailable = document.fullscreenEnabled
|
||||||
() => typeof document !== 'undefined' && document.fullscreenEnabled
|
|
||||||
)
|
|
||||||
|
|
||||||
// Covers Esc and browser UI exits, not just the toolbar button.
|
// Covers Esc and browser UI exits, not just the toolbar button.
|
||||||
// Only this tile's instance announces to avoid duplicates with multiple shares.
|
// Only this tile's instance announces to avoid duplicates with multiple shares.
|
||||||
|
|||||||
Reference in New Issue
Block a user