mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-05-28 10:43:57 +02:00
Fix new swipes on Windows.
This commit is contained in:
parent
9682e37547
commit
ff0f7f49da
3 changed files with 4 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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', """
|
||||
|
|
Loading…
Add table
Reference in a new issue