Skip to content

Commit 4f3c750

Browse files
committed
fix: A0 and C8 keys not changing cursor to pointer in drop mode
Fixes #486
1 parent 5caf636 commit 4f3c750

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/control_draw/control_draw.gml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2302,7 +2302,8 @@ function control_draw() {
23022302
if (!fullscreen && ((show_piano && !isplayer) || dropmode)) {
23032303
if (!dropmode) draw_piano(floor(rw / 2 - (keysshow * 39) / 2), rh - 154, keysshow, totalcols)
23042304
else draw_piano(floor(rw / 2 - (52 * 39) / 2), rh - 154, 52, totalcols)
2305-
if (mouse_rectangle(floor(rw / 2 - (keysshow * 39) / 2), rh - 162, keysshow * 39, 136) && window = 0) curs = cr_handpoint
2305+
var key_count = (dropmode ? 52 : keysshow)
2306+
if (mouse_rectangle(floor(rw / 2 - (key_count * 39) / 2), rh - 162, key_count * 39, 136) && window = 0) curs = cr_handpoint
23062307
}
23072308

23082309
// End selecting

0 commit comments

Comments
 (0)