fix webcam resize - rtl languages

This commit is contained in:
Ramon Souza 2021-08-02 08:24:23 -03:00
parent 3e497e2d45
commit 91562f95ac

View File

@ -476,8 +476,10 @@ class WebcamDraggable extends PureComponent {
enable={{
top: (webcamsPlacement === 'bottom') && !swapLayout,
bottom: (webcamsPlacement === 'top') && !swapLayout,
left: (webcamsPlacement === 'right') && !swapLayout,
right: (webcamsPlacement === 'left') && !swapLayout,
left: ((!isRTL && webcamsPlacement === 'right') || (isRTL && webcamsPlacement === 'left'))
&& !swapLayout,
right: ((!isRTL && webcamsPlacement === 'left') || (isRTL && webcamsPlacement === 'right'))
&& !swapLayout,
topLeft: false,
topRight: false,
bottomLeft: false,