Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lock min slider and Lock max slider #103

Open
peter102096 opened this issue Apr 26, 2021 · 0 comments
Open

Lock min slider and Lock max slider #103

peter102096 opened this issue Apr 26, 2021 · 0 comments

Comments

@peter102096
Copy link

I have a requirement, need lock min or lock max.

so I edit your code.

first add 2 public boolean value:
public var leftLock = false
public var rightLock = false

in beginTracking function

add 2 conditional expressions after "guard isTouchingLeftHandle || isTouchingRightHandle else { return false }":

    if leftLock, isTouchingLeftHandle {
        return false
    }
    
    if rightLock, isTouchingRightHandle {
        return false
    }

it can work correct,

Can you add this feature to the master version ?

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant