node-mac-recorder 2.20.13 → 2.20.14

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.20.13",
3
+ "version": "2.20.14",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -751,17 +751,16 @@ NSString* getCursorType() {
751
751
 
752
752
  NSString *finalType = @"default";
753
753
 
754
- // SYSTEM CURSOR FIRST - more reliable for visual state
755
- // Always trust system cursor first, only use AX for very specific cases
754
+
755
+ // SYSTEM CURSOR PRIORITY - trust visual state over accessibility
756
756
  if (systemCursorType && [systemCursorType length] > 0) {
757
- // Only override system cursor with AX if system is "default" AND AX gives us text/resize
757
+ // ALWAYS use system cursor when available - it reflects visual state
758
+ finalType = systemCursorType;
759
+
760
+ // Special case: Only use AX for resize cursors that system can't detect
758
761
  if ([systemCursorType isEqualToString:@"default"] && axCursorType &&
759
- ([axCursorType isEqualToString:@"text"] ||
760
- [axCursorType containsString:@"resize"] ||
761
- [axCursorType isEqualToString:@"crosshair"])) {
762
+ [axCursorType containsString:@"resize"]) {
762
763
  finalType = axCursorType;
763
- } else {
764
- finalType = systemCursorType;
765
764
  }
766
765
  }
767
766
  // Only if system completely fails, use AX