Skip to content

Smooth, pixel by pixel scrolling #3545

Closed

Description

@Poopooracoocoo

note: i searched for "scroll" and "scrolling" and yet no one made an issue for this? touchpads and touchscreens could really do with this.

Activity

  1. miloush commented on Sep 24, 2020

    @miloush
    Contributor

    Can you provide repro steps of what does not smooth scroll for you?

  2. Poopooracoocoo commented on Sep 25, 2020

    @Poopooracoocoo
    Author

    @miloush Do you know of any WPF apps off the top of your head?

  3. miloush commented on Sep 26, 2020

    @miloush
    Contributor

    @Poopooracoocoo yes. Maybe I just don't know what you mean by smooth scrolling and how it differs from the current scrolling behaviour. Can you elaborate?

  4. Poopooracoocoo commented on Sep 27, 2020

    @Poopooracoocoo
    Author

    Could you please name some?

    By smooth scrolling, I mean pixel by pixel, as opposed to line by line. This is the difference between a mouse wheel that has notches and a touchscreen, pen or touchpad. You can see this difference in apps like Chrome, Firefox, the Start Menu and Settings.

  5. miloush commented on Sep 27, 2020

    @miloush
    Contributor

    Visual Studio, Expression Design, Message Analyzer, PowerShell ISE, WinDbg, ILSpy, are you looking for anything specific?

    The text box seems to be scrolling pixel by pixel by default. List box, combo box and similar items controls can scroll smoothly if you set ScrollViewer.CanContentScroll="False" on them... is that what you are looking for?

  6. ShankarBUS commented on Sep 27, 2020

    @ShankarBUS

    I guess @Poopooracoocoo is referring to smooth inertial scrolling similar to what MS Edge and UWP/WinUI provides.

    Even if we set the CanContentScroll to false, it still won't be smooth (may be not stuttering but still not smooth).

  7. miloush commented on Sep 27, 2020

    @miloush
    Contributor

    The inertia is on by default and can be controlled by ScrollViewer.PanningDeceleration. It looks pretty smooth to me, that's why I was asking for repro steps.

  8. ShankarBUS commented on Sep 27, 2020

    @ShankarBUS

    Ever used any UWP apps? OP wants a scrolling experience similar to what UWP offers.

    Animated, inertial & smooth scrolling to be precise.

    CanContentScroll only toggles between line/content (i.e. one control at a time) scroll. There is no support for pixel by pixel scrolling in WPF natively. We have to use some ugly workarounds just for this.

  9. miloush commented on Sep 27, 2020

    @miloush
    Contributor

    I tried both UWP and WPF with ListBox and about hundred of items using touchpad. They are both smooth, pixel-by-pixel and have inertia. The only difference I can see is 1) speed: UWP scrolls faster on inertia but slower when fingers are still touching compared to WPF 2) UWP bounces when you reach the end of scrolling.

    You can also use VirtualizingPanel.ScrollUnit="Pixel" instead of CanContentScroll and the scrolling speed can be controlled in Settings.

  10. ryalanms commented on Oct 15, 2020

    @ryalanms
    Member

    @ShankarBUS, thank you for the report. Can you reactivate this issue with a repro project and more specific details on what is wrong with the scrolling behavior? Thanks.

  11. ghost locked as resolved and limited conversation to collaborators on Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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