Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit f11bf73

Browse files
committed
Include mouse back and forward buttons on Linux mouse events.
1 parent 66832de commit f11bf73

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

shell/platform/linux/fl_view.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ static gboolean get_mouse_button(GdkEvent* event, int64_t* button) {
189189
case 3:
190190
*button = kFlutterPointerButtonMouseSecondary;
191191
return TRUE;
192+
case 4:
193+
*button = kFlutterPointerButtonMouseBack;
194+
return TRUE;
195+
case 5:
196+
*button = kFlutterPointerButtonMouseForward;
197+
return TRUE;
192198
default:
193199
return FALSE;
194200
}

0 commit comments

Comments
 (0)