mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix new swipes on Windows.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user