Skip to content

Allow updateSlider to go all the way left or right #170

@scotself

Description

@scotself

Line #338 in juxtapose.js, in the updateSlider function, is there a particular reason it's
if (leftPercentNum > 0 && leftPercentNum < 100) {
instead of
if (leftPercentNum >= 0 && leftPercentNum <= 100) {
?

The way it is now, I cannot make a button which, on click, slides the slider all the way right or left ('show only before' or 'show only after' button). For now, I just grabbed the code (great work, btw!!) and made a copy of our own and made this change locally, but that would be a simple and welcome change. Thanks!

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