Commit 7e4ebdc
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
| 620 | + | |
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
| 679 | + | |
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
| |||
0 commit comments