add 200ms delay before starting drag'n'drop

This commit is contained in:
GenevensiS
2026-01-07 04:34:08 +01:00
parent aeae27c7e3
commit 608de308fd
5 changed files with 34 additions and 17 deletions
+4 -2
View File
@@ -70,8 +70,9 @@ public:
inline void setCard(const CardP& card, bool event = false) { selectItem(card, true, event); }
// --------------------------------------------------- : Clipboard and Drag'n'Drop
CardListDropTarget* drop_target;
wxTimer drop_timer;
bool canCut() const override;
bool canCopy() const override;
@@ -167,7 +168,8 @@ private:
void onItemActivate (wxListEvent&);
void onSelectColumns (wxCommandEvent&);
void onChar (wxKeyEvent&);
void onBeginDrag (wxListEvent&);
void onBeginDrag (wxListEvent&);
void OnDragTimer (wxTimerEvent&);
void onDrag (wxMouseEvent&);
void onContextMenu (wxContextMenuEvent&);
};