mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Respected system-wide preference for disabling swipe-to-back on macOS.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
+1
-1
Submodule Telegram/lib_base updated: 18a2b26b94...42b01c4726
Reference in New Issue
Block a user