touch: Stop flinging if no scroll happened#41028
Conversation
Signed-off-by: kongbai1996 <[email protected]>
|
I think you might need to add a bit more explanation about the background. I'd like to understand better what is happening. |
There was a problem hiding this comment.
I think you might need to add a bit more explanation about the background. I'd like to understand better what is happening.
The background is listed in issue. I adjusted title/text a bit.
Testing: There are currently no related test cases for the modifications made to fling.
I will add webdriver support for touch in a few days.
Signed-off-by: Euclid Ye <[email protected]>
When the fling reaches the bottom and there is no more distance to scroll, if the fling is not ended and servo/components/compositing/touch.rs Lines 674 to 681 in ad134e1 |
If no scroll happened, we would stop flinging if there is any.
Extract the functionality to
fn stop_fling_if_needed.Testing: There are currently no related test cases for the modifications made to fling.
Fixes: #41026