Skip to content

Commit 7146d9c

Browse files
committed
Fix sound playing when scrolling page
1 parent 243398f commit 7146d9c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Minecraft Note Block Studio.yyp

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/control_draw/control_draw.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function control_draw() {
227227
}
228228

229229
// scroll to change the instument or key if enabled. Also check if user scrolled before continue
230-
if (window = 0 && (mouse_wheel_down_dynamic() || mouse_wheel_up_dynamic()) && (exist = 0 || changepitch = 0) && !isplayer && !volume_scroll) {
230+
if (mousewheel >= 1 && window = 0 && (mouse_wheel_down_dynamic() || mouse_wheel_up_dynamic()) && (exist = 0 || changepitch = 0) && !isplayer && !volume_scroll) {
231231

232232
selected_vel = 100
233233
selected_pan = 100

0 commit comments

Comments
 (0)