mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
+ fix: drag&drop selection should use configured slop settings
This commit is contained in:
parent
2b24b9f8a7
commit
c47987c693
@ -1 +1 @@
|
||||
226
|
||||
227
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<assemblyIdentity
|
||||
name="Notepad3"
|
||||
processorArchitecture="*"
|
||||
version="5.20.226.1"
|
||||
version="5.20.227.1"
|
||||
type="win32"
|
||||
/>
|
||||
<description>Notepad3 RC2</description>
|
||||
|
||||
@ -4286,13 +4286,14 @@ void Editor::SetDragPosition(SelectionPosition newPos) {
|
||||
}
|
||||
if (!(posDrag == newPos)) {
|
||||
// >>>>>>>>>>>>>>> BEG NON STD SCI PATCH >>>>>>>>>>>>>>>
|
||||
int const slop_x = (caretPolicies.x.slop < 75) ? 75 : caretPolicies.x.slop;
|
||||
int const slop_y = (caretPolicies.y.slop < 3) ? 3 : caretPolicies.y.slop;
|
||||
const CaretPolicies dragCaretPolicies = {
|
||||
CaretPolicy(CARET_SLOP | CARET_STRICT | CARET_EVEN, 50),
|
||||
CaretPolicy(CARET_SLOP | CARET_STRICT | CARET_EVEN, 2)
|
||||
CaretPolicy(CARET_SLOP | CARET_STRICT | CARET_EVEN, slop_x),
|
||||
CaretPolicy(CARET_SLOP | CARET_STRICT | CARET_EVEN, slop_y)
|
||||
};
|
||||
MovedCaret(newPos, posDrag, true, dragCaretPolicies);
|
||||
// <<<<<<<<<<<<<<< END NON STD SCI PATCH <<<<<<<<<<<<<<<
|
||||
|
||||
caret.on = true;
|
||||
FineTickerCancel(tickCaret);
|
||||
if ((caret.active) && (caret.period > 0) && (newPos.Position() < 0))
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#define SAPPNAME "Notepad3"
|
||||
#define VERSION_MAJOR 5
|
||||
#define VERSION_MINOR 20
|
||||
#define VERSION_REV 226
|
||||
#define VERSION_REV 227
|
||||
#define VERSION_BUILD 1
|
||||
#define SCINTILLA_VER 430
|
||||
#define ONIGURUMA_REGEX_VER 6.9.4
|
||||
|
||||
Loading…
Reference in New Issue
Block a user