node-mac-recorder 2.9.0 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -127,8 +127,8 @@ void updateScreenOverlays();
127
127
  // Handle mouse click to toggle window selection (ONLY selection, no recording start)
128
128
  if (self.windowInfo) {
129
129
  // Check if this window is already selected
130
- BOOL wasSelected = (g_selectedWindowInfo &&
131
- [g_selectedWindowInfo isEqualToDictionary:self.windowInfo]);
130
+ BOOL wasSelected = (g_clickedWindowInfo &&
131
+ [g_clickedWindowInfo isEqualToDictionary:self.windowInfo]);
132
132
 
133
133
  if (wasSelected) {
134
134
  // Deselect this window - return to normal highlight behavior
@@ -172,6 +172,12 @@ void updateScreenOverlays();
172
172
  [self updateAppearance];
173
173
 
174
174
  // DON'T start recording here - that's only for the "Start Record" button
175
+ // Consume the event completely to prevent any propagation
176
+ NSLog(@"🛑 MOUSE EVENT CONSUMED - No recording started");
177
+
178
+ // IMPORTANT: Return YES to indicate we handled the event
179
+ // This prevents the event from propagating to other handlers
180
+ return;
175
181
  }
176
182
  }
177
183