mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-05-30 03:33:55 +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_button.h"
|
||||||
#include "ui/controls/send_as_button.h"
|
#include "ui/controls/send_as_button.h"
|
||||||
#include "ui/controls/silent_toggle.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 "ui/ui_utility.h"
|
||||||
#include "inline_bots/inline_bot_result.h"
|
#include "inline_bots/inline_bot_result.h"
|
||||||
#include "base/event_filter.h"
|
#include "base/event_filter.h"
|
||||||
|
|
|
@ -65,8 +65,9 @@ void SetupSwipeHandler(
|
||||||
Fn<void(SwipeContextData)> update,
|
Fn<void(SwipeContextData)> update,
|
||||||
Fn<SwipeHandlerFinishData(int, Qt::LayoutDirection)> generateFinish,
|
Fn<SwipeHandlerFinishData(int, Qt::LayoutDirection)> generateFinish,
|
||||||
rpl::producer<bool> dontStart) {
|
rpl::producer<bool> dontStart) {
|
||||||
constexpr auto kThresholdWidth = 50;
|
static constexpr auto kThresholdWidth = 50;
|
||||||
constexpr auto kMaxRatio = 1.5;
|
static constexpr auto kMaxRatio = 1.5;
|
||||||
|
|
||||||
struct UpdateArgs {
|
struct UpdateArgs {
|
||||||
QPoint globalCursor;
|
QPoint globalCursor;
|
||||||
QPointF position;
|
QPointF position;
|
||||||
|
|
|
@ -457,7 +457,7 @@ if customRunCommand:
|
||||||
stage('patches', """
|
stage('patches', """
|
||||||
git clone https://github.com/desktop-app/patches.git
|
git clone https://github.com/desktop-app/patches.git
|
||||||
cd patches
|
cd patches
|
||||||
git checkout 61bbacab28
|
git checkout b88d491492
|
||||||
""")
|
""")
|
||||||
|
|
||||||
stage('msys64', """
|
stage('msys64', """
|
||||||
|
|
Loading…
Add table
Reference in a new issue