Skip to content

Commit 3bec69a

Browse files
committed
Fix SDLBackend mouse button state
1 parent 79643e7 commit 3bec69a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ShaftSDL3/SDLBackend.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public class SDLBackend: Backend {
370370
pointerIdentifier += 1
371371
}
372372

373-
updateButtonState(event.button, isDown: true)
373+
updateButtonState(event.button, isDown: isDown)
374374

375375
guard let view = viewByID[Int(event.windowID)] else {
376376
// When a button is pressed outside of any view, 0 is used as the

0 commit comments

Comments
 (0)