Skip to content

Commit

Permalink
fix: mouse region on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
thelukewalton committed May 10, 2024
1 parent c76390e commit 2c4649f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/src/components/navigation_rail/navigation_rail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class _ZetaNavigationRailItemContent extends StatelessWidget {
Widget build(BuildContext context) {
final zeta = Zeta.of(context);
return MouseRegion(
cursor: disabled ? SystemMouseCursors.forbidden : SystemMouseCursors.click,
child: GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: disabled ? null : onTap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class _ZetaSegmentedControlState<T> extends State<ZetaSegmentedControl<T>>
final colors = Zeta.of(context).colors;

return MouseRegion(
cursor: kIsWeb ? SystemMouseCursors.click : MouseCursor.defer,
cursor: SystemMouseCursors.click,
child: SelectionContainer.disabled(
child: Container(
padding: const EdgeInsets.all(ZetaSpacing.xxs),
Expand Down

0 comments on commit 2c4649f

Please sign in to comment.