Skip to content

Commit 2f32e3a

Browse files
shift scaledPos down by this.areaY
1 parent c689ac9 commit 2f32e3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enigma-swing/src/main/java/org/quiltmc/enigma/gui/panel/MarkableScrollPane.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ void update() {
412412
for (final int pos : this.pendingMarkerPositions) {
413413
final Collection<Marker> markers = MarkableScrollPane.this.markersByPos.get(pos);
414414
if (pos < this.viewHeight && !markers.isEmpty() && MarkableScrollPane.this.maxConcurrentMarkers > 0) {
415-
final int scaledPos = this.scalePos(pos);
415+
final int scaledPos = this.scalePos(pos) + this.areaY;
416416

417417
this.paintersByPos.remove(pos);
418418

0 commit comments

Comments
 (0)