Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ FLUTTER_EXPORT

/**
* The style of mouse tracking to use for the view. Defaults to
* FlutterMouseTrackingModeNone.
* FlutterMouseTrackingModeInKeyWindow.
*/
@property(nonatomic) FlutterMouseTrackingMode mouseTrackingMode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ @implementation FLEViewController {
static void CommonInit(FLEViewController* controller) {
controller->_messageHandlers = [[NSMutableDictionary alloc] init];
controller->_additionalKeyResponders = [[NSMutableOrderedSet alloc] init];
controller->_mouseTrackingMode = FlutterMouseTrackingModeInKeyWindow;
}

- (instancetype)initWithCoder:(NSCoder*)coder {
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/glfw/flutter_glfw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ struct FlutterDesktopWindow {
GLFWwindow* window;

// Whether or not to track mouse movements to send kHover events.
bool hover_tracking_enabled = false;
bool hover_tracking_enabled = true;

// The ratio of pixels per screen coordinate for the window.
double pixels_per_screen_coordinate = 1.0;
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/glfw/public/flutter_glfw.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ FlutterDesktopGetPluginRegistrar(FlutterDesktopWindowControllerRef controller,
//
// If hover is enabled, mouse movement will send hover events to the Flutter
// engine, rather than only tracking the mouse while the button is pressed.
// Defaults to off.
// Defaults to on.
FLUTTER_EXPORT void FlutterDesktopWindowSetHoverEnabled(
FlutterDesktopWindowRef flutter_window,
bool enabled);
Expand Down