Skip to content

Commit

Permalink
Fix project zooming
Browse files Browse the repository at this point in the history
  • Loading branch information
sdercolin committed Dec 19, 2023
1 parent 6c5c0a5 commit 0e34b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsMain/kotlin/process/ProjectZooming.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fun Project.zoom(factor: Double): Project {
it.copy(tickPosition = (it.tickPosition * factor).roundToLong(), bpm = it.bpm * factor)
}
val timeSignatures = timeSignatures
.map { it.copy(measurePosition = (measurePrefix * factor).roundToInt()) }
.map { it.copy(measurePosition = (it.measurePosition * factor).roundToInt()) }
.fold(listOf<TimeSignature>()) { acc, timeSignature ->
if (acc.isEmpty()) {
listOf(timeSignature)
Expand Down

0 comments on commit 0e34b8f

Please sign in to comment.