- fix: the scroll behavior of mouse dragging on the editor's edge is not correct

This commit is contained in:
Roy Qu 2022-03-04 19:10:09 +08:00
parent 82ecab9c90
commit dafac73e12
2 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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) {