Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Disable track click #344

Open
dotuven opened this issue Nov 5, 2019 · 1 comment
Open

Disable track click #344

dotuven opened this issue Nov 5, 2019 · 1 comment

Comments

@dotuven
Copy link

dotuven commented Nov 5, 2019

Is there a way to disable click/touch on the track, but still be able to drag the handle?
It would be a useful option if we have multiple sliders in a form and wants to prevent the user from doing unintended changes of the value if the thumb touches the track while scrolling on a smartphone/tablet etc.

@denist3r
Copy link

You could implement it by using pointer-event property in CSS

@include bp-sm-max { .rangeslider { pointer-events: none; &__handle { pointer-events: auto; } } }

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

No branches or pull requests

2 participants