Skip to content

Commit

Permalink
Merge pull request #383 from robertnhart/pianoroll-horiz-scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
ryohey authored Jul 13, 2024
2 parents cc35148 + 3e17d36 commit 9272273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/stores/PianoRollStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default class PianoRollStore {
const startTick = transform.getTick(scrollLeft)
const widthTick = transform.getTick(canvasWidth)
const endTick = startTick + widthTick
return transform.getTick(Math.max(trackEndTick, endTick))
return transform.getX(Math.max(trackEndTick, endTick))
}

get contentHeight(): number {
Expand Down

0 comments on commit 9272273

Please sign in to comment.