servo/components/script
Abdelrahman Hossam c76c44d0fb
script: Ensure that keyboard modifiers, screen point, and client point are set in WheelEvents (#37947)
- Updating the WheelEvent initialization to correctly handle keyboard
modifiers when the wheel event is triggered. The changes ensure that the
modifiers (Ctrl, Alt, Shift, Meta) are properly set based on the current
state of the keyboard when the wheel event is created. This is
particularly important for scenarios where the wheel event is influenced
by key presses, such as scrolling with the Ctrl key pressed to zoom in
or out.

- Updating the `screen_point` and `client_point` as it was always 0,0
before. Now, it shows the correct position of the mouse pointer while
triggering the wheel event.

Test: Manual Test case and existing WPT tests
(classic/perform_actions/wheel.py[test_scroll_with_key_pressed])
Fixes: #37827

Signed-off-by: abdelrahman1234567 <abdelrahman.hossameldin.awadalla@huawei.com>
2025-07-17 05:32:03 +00:00
..
docs
dom script: Ensure that keyboard modifiers, screen point, and client point are set in WheelEvents (#37947) 2025-07-17 05:32:03 +00:00
layout_dom script: Wrapping unsafe code in unsafe blocks for basic DOM types (#37997) 2025-07-11 11:38:02 +00:00
resources
xpath script: Update name validation for attribute, element, and doctype (#37747) 2025-07-11 02:45:52 +00:00
animation_timeline.rs
animations.rs
body.rs
build.rs
canvas_context.rs canvas: Add initial support of ImageBitmapRenderingContext (#37998) 2025-07-15 08:03:49 +00:00
canvas_state.rs canvas: Use stored transform instead of querying canvas paint thread (#38097) 2025-07-16 14:59:10 +00:00
Cargo.toml canvas: Use wrapped kurbo::BezPath for path everywhere (#37967) 2025-07-12 10:37:47 +00:00
clipboard_provider.rs
conversions.rs
devtools.rs
document_collection.rs
document_loader.rs
drag_data_store.rs
fetch.rs Return correct source position for element CSP violations (#37970) 2025-07-11 08:42:51 +00:00
iframe_collection.rs
image_animation.rs
indexed_db.rs Move common indexeddb methods out of dom implementations (#38101) 2025-07-17 04:19:03 +00:00
init.rs
layout_image.rs Return correct source position for element CSP violations (#37970) 2025-07-11 08:42:51 +00:00
lib.rs Move common indexeddb methods out of dom implementations (#38101) 2025-07-17 04:19:03 +00:00
links.rs
messaging.rs Add a basic caching mechanism for ImageKeys. (#37369) 2025-07-03 13:16:43 +00:00
microtask.rs
mime.rs
navigation.rs
network_listener.rs
realms.rs
routed_promise.rs
script_module.rs Return correct source position for element CSP violations (#37970) 2025-07-11 08:42:51 +00:00
script_runtime.rs
script_thread.rs script: Ensure that keyboard modifiers, screen point, and client point are set in WheelEvents (#37947) 2025-07-17 05:32:03 +00:00
security_manager.rs Return correct source position for element CSP violations (#37970) 2025-07-11 08:42:51 +00:00
serviceworker_manager.rs
stylesheet_loader.rs Return correct source position for element CSP violations (#37970) 2025-07-11 08:42:51 +00:00
stylesheet_set.rs
task.rs script: Reduce usage of Trusted in Node::insert. (#37762) 2025-07-15 01:11:12 +00:00
task_manager.rs
task_queue.rs
task_source.rs
test.rs
textinput.rs
timers.rs
unminify.rs
webdriver_handlers.rs webdriver: Element click waits for navigation complete (#37935) 2025-07-15 06:51:05 +00:00
window_named_properties.rs