servo/components/shared/embedder
Euclid Ye 990ed8891f
Rework ScriptThread::handle_input_event for behaviour and performance (#36619)
Rework `ScriptThread::handle_input_event` for correct behaviour and
better performance
1. Only trigger click event with primary button, according to spec
2. Avoid unnecessary clone of `ConstellationInputEvent`

This is a follow up of #36413 

Testing: Manually tested. Right mouse won't trigger click event now.
Fixes: #35666 
cc @jdm @xiaochengh

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
2025-04-21 03:34:39 +00:00
..
build.rs Set the cfg properly for the production-stripped profile (#32991) 2024-08-09 09:16:51 +00:00
Cargo.toml resources: Remove baked in resources (#36042) 2025-04-17 05:12:44 +00:00
input_events.rs Rework ScriptThread::handle_input_event for behaviour and performance (#36619) 2025-04-21 03:34:39 +00:00
lib.rs libservo: Expose a ServoBuilder (#36549) 2025-04-16 16:58:52 +00:00
resources.rs resources: Remove baked in resources (#36042) 2025-04-17 05:12:44 +00:00
user_content_manager.rs Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
webdriver.rs Implement GetComputedRole in wd (#36552) 2025-04-16 03:55:15 +00:00