Skip to content

Regression in pan-zoom view example #966

@timsueberkrueb

Description

@timsueberkrueb

Commit e6479ee seems to have caused a regression in the pan-zoom view example.

Behavior before (commit b7aa52c):

Details
Screencast.From.2025-11-09.12-43-29.webm

Behavior starting with commit e6479ee:

Details
Screencast.From.2025-11-09.12-44-21.webm

Note: for making the videos I adjusted the following code (the scrolling behavior changed with the switch to ui-events and factor should probably be adjusted):

            e @ Event::Pointer(PointerEvent::Scroll(_)) => {
                if let Some(delta) = e.pixel_scroll_delta_vec2() {
                    let scale = 1. + delta.y / 50.; // <-- divisor changed to 50 to increase scrolling speed

As you can see, in particular when zooming in quite close, there are observable jumps in the view layout.

This could mean that there is a regression in (animated) style transforms; but it could also mean the code of the example needs to be adjusted? Thanks in advance for any advice on fixing this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions