Respected system-wide preference for disabling swipe-to-back on macOS.

This commit is contained in:
23rd
2025-10-02 15:41:16 +03:00
committed by John Preston
parent 93f84e2b65
commit c060243201
2 changed files with 4 additions and 2 deletions
@@ -202,7 +202,9 @@ void SetupSwipeHandler(SwipeHandlerArgs &&args) {
*state->direction);
state->threshold = style::ConvertFloatScale(kThresholdWidth)
* state->finishByTopData.speedRatio;
if (!state->finishByTopData.callback) {
if (!state->finishByTopData.callback
|| (state->finishByTopData.msgBareId == kMsgBareIdSwipeBack
&& !base::Platform::IsSwipeBackEnabled())) {
setOrientation(Qt::Vertical);
}
};