Fix new swipes on Windows.

This commit is contained in:
John Preston 2025-03-12 14:02:04 +04:00
parent 9682e37547
commit ff0f7f49da
3 changed files with 4 additions and 5 deletions

View file

@ -52,8 +52,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/controls/send_button.h"
#include "ui/controls/send_as_button.h"
#include "ui/controls/silent_toggle.h"
#include "ui/controls/swipe_handler.h"
#include "ui/controls/swipe_handler_data.h"
#include "ui/ui_utility.h"
#include "inline_bots/inline_bot_result.h"
#include "base/event_filter.h"

View file

@ -65,8 +65,9 @@ void SetupSwipeHandler(
Fn<void(SwipeContextData)> update,
Fn<SwipeHandlerFinishData(int, Qt::LayoutDirection)> generateFinish,
rpl::producer<bool> dontStart) {
constexpr auto kThresholdWidth = 50;
constexpr auto kMaxRatio = 1.5;
static constexpr auto kThresholdWidth = 50;
static constexpr auto kMaxRatio = 1.5;
struct UpdateArgs {
QPoint globalCursor;
QPointF position;

View file

@ -457,7 +457,7 @@ if customRunCommand:
stage('patches', """
git clone https://github.com/desktop-app/patches.git
cd patches
git checkout 61bbacab28
git checkout b88d491492
""")
stage('msys64', """