Skip to content

Commit 09ea7fe

Browse files
committed
fix(rendering): Wrong cursor position when zooming
1 parent 34d121e commit 09ea7fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rendering/utils/BeatBounds.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ export class BeatBounds {
8181
public finish(scale: number = 1) {
8282
this.realBounds.scaleWith(scale);
8383
this.visualBounds.scaleWith(scale);
84-
84+
this.onNotesX *= scale;
85+
8586
if(this.notes){
8687
for(const n of this.notes!){
8788
n.finish(scale);

0 commit comments

Comments
 (0)