mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-125289 Unexpected navigation after folding
This commit is contained in:
@@ -5457,7 +5457,9 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
@Override
|
||||
public void mouseReleased(@NotNull MouseEvent e) {
|
||||
myMousePressArea = null;
|
||||
runMouseReleasedCommand(e);
|
||||
if (myMousePressedEvent == null || !myMousePressedEvent.isConsumed()) {
|
||||
runMouseReleasedCommand(e);
|
||||
}
|
||||
if (!e.isConsumed() && myMousePressedEvent != null && !myMousePressedEvent.isConsumed() &&
|
||||
Math.abs(e.getX() - myMousePressedEvent.getX()) < EditorUtil.getSpaceWidth(Font.PLAIN, EditorImpl.this) &&
|
||||
Math.abs(e.getY() - myMousePressedEvent.getY()) < getLineHeight()) {
|
||||
@@ -5632,6 +5634,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
getScrollingModel().scrollVertically(y - scrollShift);
|
||||
myGutterComponent.updateSize();
|
||||
validateMousePointer(e);
|
||||
e.consume();
|
||||
return isNavigation;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user