mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Optimize IPC for non-cancelable touch events (#35785)
* The cancelable feature is optimized. If the cancelable feature is a non-cancelable feature, no message is sent back to the Compositor. Add a warning log when prevent TouchsequenceInfo cannot be found. Signed-off-by: kongbai1996 <1782765876@qq.com> * fix Clippy Error Reported in the Pipeline. Signed-off-by: kongbai1996 <1782765876@qq.com> --------- Signed-off-by: kongbai1996 <1782765876@qq.com>
This commit is contained in:
parent
ff5683680f
commit
f594691af9
3 changed files with 9 additions and 2 deletions
|
@ -1396,7 +1396,8 @@ impl IOCompositor {
|
|||
if !self
|
||||
.touch_handler
|
||||
.is_handling_touch_move(self.touch_handler.current_sequence_id) &&
|
||||
self.send_touch_event(event)
|
||||
self.send_touch_event(event) &&
|
||||
event.is_cancelable()
|
||||
{
|
||||
self.touch_handler
|
||||
.set_handling_touch_move(self.touch_handler.current_sequence_id, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue