mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 18:30:42 +02:00
Fixed calculation of overlay position
This commit is contained in:
parent
93e266cde5
commit
377ffe9698
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ function updateOutputDeviceMutedOverlay(isMuted) {
|
||||||
var outputDeviceMutedOverlayBottomY = props.y + overlayDims;
|
var outputDeviceMutedOverlayBottomY = props.y + overlayDims;
|
||||||
var inputDeviceMutedOverlayTopY = INPUT_DEVICE_MUTED_MARGIN_TOP_PX;
|
var inputDeviceMutedOverlayTopY = INPUT_DEVICE_MUTED_MARGIN_TOP_PX;
|
||||||
if (outputDeviceMutedOverlayBottomY + OUTPUT_DEVICE_MUTED_MARGIN_BOTTOM_PX > inputDeviceMutedOverlayTopY) {
|
if (outputDeviceMutedOverlayBottomY + OUTPUT_DEVICE_MUTED_MARGIN_BOTTOM_PX > inputDeviceMutedOverlayTopY) {
|
||||||
overlayDims = 2 * (inputDeviceMutedOverlayTopY - Window.innerHeight / 2 - OUTPUT_DEVICE_MUTED_MARGIN_BOTTOM_PX);
|
overlayDims = 2 * (Window.innerHeight - inputDeviceMutedOverlayTopY / 2 - OUTPUT_DEVICE_MUTED_MARGIN_BOTTOM_PX);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (overlayDims + OUTPUT_DEVICE_MUTED_MARGIN_LEFT_RIGHT_PX > Window.innerWidth) {
|
if (overlayDims + OUTPUT_DEVICE_MUTED_MARGIN_LEFT_RIGHT_PX > Window.innerWidth) {
|
||||||
|
|
Loading…
Reference in a new issue