Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-sts committed May 26, 2024
1 parent a60eafb commit 4900fff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/solve/scene/view/SceneView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ class SceneView : View() {
}
root.setOnScroll { event ->
val scrollDelta = event.deltaY
if (scrollDelta == 0.0)
if (scrollDelta == 0.0) {
return@setOnScroll
}
if (scrollDelta > 0) {
controller.increaseScale()
} else {
Expand Down

0 comments on commit 4900fff

Please sign in to comment.