mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-16 23:54:28 +10:00
Use kSecondaryMouseButton bitmask check, per code review
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
@@ -538,7 +539,7 @@ class _RoutingSheetBodyState extends State<_RoutingSheetBody> {
|
||||
return Listener(
|
||||
onPointerDown: PlatformInfo.isDesktop && hasBytes
|
||||
? (event) {
|
||||
if (event.buttons == 2) {
|
||||
if (event.buttons & kSecondaryMouseButton != 0) {
|
||||
_showPathDetail(context, connector, contact, record.pathBytes);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user