diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 0c81d329b..01a16686d 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -2375,6 +2375,7 @@ BOOL Notepad_plus::notify(SCNotification *notification) } } //break; + sender->resetDraggingPoint(); return TRUE; } diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.h b/PowerEditor/src/WinControls/TabBar/TabBar.h index eb5399b67..a53759cd6 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.h +++ b/PowerEditor/src/WinControls/TabBar/TabBar.h @@ -216,6 +216,11 @@ public : return _draggingPoint; }; + void resetDraggingPoint() { + _draggingPoint.x = 0; + _draggingPoint.y = 0; + }; + static void doOwnerDrawTab() { ::SendMessage(_hwndArray[0], TCM_SETPADDING, 0, MAKELPARAM(6, 0)); for (int i = 0 ; i < _nbCtrl ; i++)