Skip to content

Commit 7e4ebdc

Browse files
Fix middle-drag smoothness and add compatibility for some apps (#104)
* Refactor mouse event handling to use current position instead of target position; optimize touch data copying in MultitouchManager to reduce GC pressure. * Add accumulated drag position and cursor reassociation in MouseEventGenerator - Introduced `lastDragPosition` to track the accumulated drag position for improved cursor handling in applications requiring absolute positioning. - Added `reassociateCursor` method to restore normal cursor behavior after drag operations. - Updated drag handling to use accumulated position for mouse events, enhancing compatibility with various applications. - Ensured cursor is properly reassociated after drag ends or is canceled to prevent freezing issues. * Enhance cursor re-association error handling in MouseEventGenerator; optimize touch data copying in MultitouchManager to reduce GC pressure * Refactor MouseEventGenerator to improve drag position handling and add clamping to display bounds; enhance test coverage for drag position accumulation and clamping behavior * Enhance display bounds caching and reconfiguration handling in MouseEventGenerator; ensure atomic cursor reassociation during drag release to prevent race conditions * Refactor delta field setting in MouseEventGenerator to ensure proper order of double and integer values for improved compatibility with various applications * Refactor MouseEventGenerator to ensure atomic cursor reassociation and state updates during drag cancellation, preventing race conditions and improving drag state management. * Refactor MouseEventGenerator to ensure atomic cursor reassociation and drag state updates during normal drag termination, preventing race conditions and enhancing overall drag state management. * Refactor MouseEventGenerator to enhance drag state management by ensuring atomic cancellation of existing drags, preventing race conditions during new drag initiation.
1 parent f37100d commit 7e4ebdc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

MiddleDrag.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@
617617
"@executable_path/../Frameworks",
618618
);
619619
MACOSX_DEPLOYMENT_TARGET = 11.5;
620-
MARKETING_VERSION = 1.4.1.4;
620+
MARKETING_VERSION = 1.4.2;
621621
OTHER_LDFLAGS = "";
622622
PRODUCT_BUNDLE_IDENTIFIER = app.middledrag.MiddleDrag;
623623
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -676,7 +676,7 @@
676676
"@executable_path/../Frameworks",
677677
);
678678
MACOSX_DEPLOYMENT_TARGET = 11.5;
679-
MARKETING_VERSION = 1.4.1.4;
679+
MARKETING_VERSION = 1.4.2;
680680
OTHER_LDFLAGS = "";
681681
PRODUCT_BUNDLE_IDENTIFIER = app.middledrag.MiddleDrag;
682682
PRODUCT_NAME = "$(TARGET_NAME)";

0 commit comments

Comments
 (0)