MTROPOLIS: Fix backwards horizontal/vertical constraint flags on Mac

This commit is contained in:
elasota 2022-05-28 05:33:44 -04:00 committed by Eugene Sandulenko
parent a0ad61ab3f
commit 2fed763839

View File

@ -615,8 +615,8 @@ bool DragMotionModifier::load(ModifierLoaderContext &context, const Data::DragMo
bool constrainHorizontal = false;
if (data.haveMacPart) {
_dragProps->constrainToParent = ((data.platform.mac.flags & Data::DragMotionModifier::MacPart::kConstrainToParent) != 0);
constrainVertical = ((data.platform.mac.flags & Data::DragMotionModifier::MacPart::kConstrainHorizontal) != 0);
constrainHorizontal = ((data.platform.mac.flags & Data::DragMotionModifier::MacPart::kConstrainVertical) != 0);
constrainHorizontal = ((data.platform.mac.flags & Data::DragMotionModifier::MacPart::kConstrainHorizontal) != 0);
constrainVertical = ((data.platform.mac.flags & Data::DragMotionModifier::MacPart::kConstrainVertical) != 0);
} else if (data.haveWinPart) {
_dragProps->constrainToParent = (data.platform.win.constrainToParent != 0);
constrainVertical = (data.platform.win.constrainVertical != 0);