mirror of
https://github.com/servo/servo.git
synced 2025-08-29 17:18:23 +01:00
layout: Skip adding ScrollFrameHitTestItem
to stacking context tree if the BoxFragment
has inherited style pointer-events: none
(#38884)
**fix some page cannot slide**
In the refactoring of https://github.com/servo/servo/pull/38480, a
segment of logic was missing.
11844ca5af/components/layout/display_list/mod.rs (L405-L410)
Testing: The page can be scrolled on the OpenHarmony device.
Fixes: https://github.com/servo/servo/pull/38480#issuecomment-3213734994
---------
Signed-off-by: kongbai1996 <1782765876@qq.com>
Signed-off-by: Fuguo <1782765876@qq.com>
Co-authored-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
parent
4c61c7a045
commit
7dc48460d2
1 changed files with 12 additions and 8 deletions
|
@ -1480,6 +1480,9 @@ impl BoxFragment {
|
|||
sensitivity,
|
||||
);
|
||||
|
||||
use style::computed_values::pointer_events::T as PointerEvents;
|
||||
|
||||
if self.style.get_inherited_ui().pointer_events != PointerEvents::None {
|
||||
stacking_context_tree
|
||||
.hit_test_items
|
||||
.push(ScrollFrameHitTestItem {
|
||||
|
@ -1488,6 +1491,7 @@ impl BoxFragment {
|
|||
rect: scroll_frame_rect,
|
||||
external_scroll_id,
|
||||
});
|
||||
}
|
||||
|
||||
Some(OverflowFrameData {
|
||||
clip_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue