- fix: the scroll behavior of mouse dragging on the editor's edge is not correct
This commit is contained in:
parent
82ecab9c90
commit
dafac73e12
3
NEWS.md
3
NEWS.md
|
@ -15,7 +15,8 @@ Red Panda C++ Version 0.14.5
|
|||
- enhancement: use the expression evaluation logic to handle "goto declaration"/"goto definition"
|
||||
- enhancement: reduce startup time by about 1 second.
|
||||
- enhancement: add option "mouse selection/drag scroll speed" in the options dialog's "Editor" / "general" tab.
|
||||
- fix: scroll speed of mouse selection/drag is too fast
|
||||
- fix: the scroll speed of mouse selection/drag is too fast.
|
||||
- fix: the scroll behavior of mouse dragging on the editor's edge is not correct
|
||||
|
||||
Red Panda C++ Version 0.14.4
|
||||
- enhancement: git - log
|
||||
|
|
|
@ -2514,9 +2514,9 @@ void SynEdit::computeScroll(int X, int Y, bool isDragging)
|
|||
else
|
||||
mScrollDeltaX = 0;
|
||||
|
||||
if (isDragging && (X<0 || X>clientRect().width())) {
|
||||
mScrollDeltaX = 0;
|
||||
}
|
||||
// if (isDragging && (X<0 || X>clientRect().width())) {
|
||||
// mScrollDeltaX = 0;
|
||||
// }
|
||||
|
||||
if (Y < iScrollBounds.top())
|
||||
mScrollDeltaY = (Y - iScrollBounds.top()) / mTextHeight - 1;
|
||||
|
@ -2525,9 +2525,9 @@ void SynEdit::computeScroll(int X, int Y, bool isDragging)
|
|||
else
|
||||
mScrollDeltaY = 0;
|
||||
|
||||
if (isDragging && (Y<0 || Y>clientRect().height())) {
|
||||
mScrollDeltaY = 0;
|
||||
}
|
||||
// if (isDragging && (Y<0 || Y>clientRect().height())) {
|
||||
// mScrollDeltaY = 0;
|
||||
// }
|
||||
|
||||
// if (mScrollDeltaX!=0 || mScrollDeltaY!=0) {
|
||||
if (isDragging) {
|
||||
|
|
Loading…
Reference in New Issue