Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
DataMouseListener: Don't set an empty highlight on mouse move -- this…
Browse files Browse the repository at this point in the history
… causes some paintstyles to flicker

Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Feb 1, 2023
1 parent c812fdb commit d10a705
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void mouseMoved(MouseEvent e) {
layer.getData().setHighlighted(
ways.stream().map(IPrimitive::getPrimitiveId).collect(Collectors.toSet()));
layer.invalidate();
} else {
} else if (!layer.getData().getHighlighted().isEmpty()) {
layer.getData().setHighlighted(Collections.emptyList());
}
} finally {
Expand Down

0 comments on commit d10a705

Please sign in to comment.