In some cases when scrolling, the window refresh is only partial.
Note that after step 2, the view scrolls to the right to show the end of the long line and the window is properly refreshed. After step 3, the view scrolls down and left to show the cursor at the start of the short line, but the left part of the window above the long line is not refreshed:

PS. The title of this ticket is intentionally vague to encompass any other refresh issues that TCoolEdit may have. Please report any such issues in the comment section.
Feature Requests: #286
Wiki: OWLNext_8_Series_Revision_History
A similar issue occurs when scrolling up and left from the end of a long line:
Note that after step 2, the view scrolls to the right to show the end of the long line and the window is properly refreshed. After step 3, the view scrolls up and left to show the cursor at the start of the short line, but the left part of the window below the long line is not refreshed.
When making the HScroll step bigger, one can see that also the left part of the window above the long line is refreshed, but it is (still) overlayed by a shifted part of the margin.
I guess that the redraw-rect includes the margin width only once instead of twice.
@elotter wrote:
The old content is correctly scrolled to the right it seems (by ScrollWindow, I guess?), but the uncovered content (the part to the left that wasn't visible before) isn't refreshed, and neither is the margin. It also seems that the scroll and clip areas are not set correctly; they include the margin area, which should be excluded.
Feel free to take ownership of this ticket.Edit: Too late. I've taken ownership. :-)
The problem was indeed with ScrollWindow (within TCoolScroller::ScrollTo).
PS. By the way, have you noticed that when using touch/pad to scroll the window horizontally the direction is reversed from normal conventions? Odd.
Last edit: Vidar Hasfjord 2025-08-14
The refresh issue when the window was scrolled both horizontally and vertically at the same time has now been fixed [r8322]. Please test and review. And report any other refresh issues here, as well.
Related
Commit: [r8322]
I transfered your fix to branches/7-coolprj-dev ([r8327]). Works well.
The same on my notebook. But there seems to be no code and no setting to influence this. And the mouse wheel doesn't support horizontal scrolling at all.
Related
Commit: [r8327]
Diff: