Closed LucasXu0 closed 1 month ago
Attention: Patch coverage is 23.33333%
with 23 lines
in your changes missing coverage. Please review.
Project coverage is 71.94%. Comparing base (
3bbdccd
) to head (9b3729b
). Report is 1 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
lib/src/service/selection/selection_gesture.dart | 25.92% | 20 Missing :warning: |
...t/service/selection/desktop_selection_service.dart | 0.00% | 3 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
By default, the
panStart
callback fromPanGestureRecognizer
won't be triggered immediately after dragging starts. It will be delayed, causing the start offset point to not match the real offset point on the screen. For example, when you start dragging from offset(0,0) horizontally, the panStart callback may trigger at offset(2, 0), which causes the start selection calculation to be incorrect.The solution is to implement a custom
PanGesture
which triggers thepanStart
call immediately without any delay.preview
https://github.com/user-attachments/assets/c9344c58-c17f-4f91-be24-267760025ea9