Skip to content

Before/after 'slide' images are swapped #659

Description

@Peter-Sparksuite

Describe the bug

Using 0.18.1 of reg-cli:

If, looking at the report of differences, one compares the 'toggle', 'blend' images vs what the 'slide' shows, you'll find that the images the 'slide' effect shows are inverted. ie: when the slider is toward the 'before', it's actually showing the 'after' image, and when the slider is toward the 'after', you're actually seeing the 'before' image. This is easy to verify, as the 'blend' and 'toggle' do show the correct before/after images.

Reproduced step

Create images that are different, then create a report. Observe the differences shown between the 'slide', 'blend' and 'toggle'. You will find that the 'slide' results are inverted compared to the others. Now look at the images themselves, and using separate diff tools, you'll see that truely, the 'before' and 'after' are being shown incorrectly with the slide, while the blend and toggle are correct.

Expected behavior

The correct image should be shown when the 'before' vs 'after' slider is at either extreme.

Actual behavior

The incorrect image is shown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions