Line-wrap fix performance issue with updates over extremely long lines.

This commit is contained in:
Martín Lucas Golini
2025-01-15 23:10:13 -03:00
parent 5e73886cc6
commit 9a0f86f946
5 changed files with 19 additions and 9 deletions

View File

@@ -1664,7 +1664,8 @@ void DebuggerPlugin::displayTooltip( UICodeEditor* editor, const EvaluateInfo& r
}
void DebuggerPlugin::tryHideTooltip( UICodeEditor* editor, const Vector2i& position ) {
if ( !mCurrentHover.isValid() ||
if ( ( editor->hasDocument() && editor->getDocument().isLoading() ) ||
!mCurrentHover.isValid() ||
( mCurrentHover.isValid() &&
!mCurrentHover.contains( editor->resolveScreenPosition( position.asFloat() ) ) ) )
hideTooltip( editor );