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 +1 -1
- package/src/cursor_tracker.mm +7 -8
package/package.json
CHANGED
package/src/cursor_tracker.mm
CHANGED
|
@@ -751,17 +751,16 @@ NSString* getCursorType() {
|
|
|
751
751
|
|
|
752
752
|
NSString *finalType = @"default";
|
|
753
753
|
|
|
754
|
-
|
|
755
|
-
//
|
|
754
|
+
|
|
755
|
+
// SYSTEM CURSOR PRIORITY - trust visual state over accessibility
|
|
756
756
|
if (systemCursorType && [systemCursorType length] > 0) {
|
|
757
|
-
//
|
|
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
|
-
|
|
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
|