Skip to content

no scroll bars #353

@johnny-smitherson

Description

@johnny-smitherson

I don't see any scroll bars when the HTML element overflows.

I can implement scrollbar myself, but I don't see any onscroll events showing up in my element when it overflows.

I see the onscroll event should be implemented as per #304 but the events don't show up in my tests.

I am using dioxus 0.7.3 with its native feature and dependency blitz-dom=0.2.4

Tested under both windows 11 and linux wayland, no scroll bars, no scroll events.

Here is some dioxus component to repro issue:

rsx! {
            div {
                style: "
                    width: 100vw;
                    height: 100vh;
                    overflow: scroll;
                ",
                
                onscroll: move |_e| {
                    info!("onscroll {:?}", _e.data());
                },
                onscrollend: move |_e| {
                    info!("onscrollnd {:?}", _e.data());
                },
                onmounted: move |_e| {
                    info!("onmounted {:#?}", _e.data());
                },
                onresize: move |_e| {
                    info!("onresize {:#?}", _e.data());
                },

                div {
                    for i in 0..100 {
                        h1 {
                            "Test {i}"
                        }
                    }
                }
            }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions