Navigation Menu

Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Slider & accidental touch #4067

Closed
gknops opened this issue Apr 16, 2012 · 4 comments
Closed

Slider & accidental touch #4067

gknops opened this issue Apr 16, 2012 · 4 comments

Comments

@gknops
Copy link

gknops commented Apr 16, 2012

Having a longer from that requires scrolling, sometimes when scrolling the page and touching too close to a slider also modifies the value of that slider.

Ideally slider objects should evaluate the direction of the drag movement, and if it doesn't match the sliders orientation those drags should be ignored.

@toddparker
Copy link
Contributor

Can you provide more details on what scenarios and devices you're seeing this issue? Unless I start a drag on top of the handle or tap the track, the slide doesn't seem to move.

@gknops
Copy link
Author

gknops commented Apr 19, 2012

Thanks for taking the time to look into this!

This is on iPhone, iOS 5.1. In my case I need a list of 12 sliders. For the same of UI compactness I use attributes and CSS to hide the textual range control and the label, and also made the sliders wider.

In this context it is easy to accidentally touch a slider while scrolling.

To avoid accidental slider changes I propose two changes:

a) an extra option controlled via a range control attribute that causes sliders to only respond to touches to the handle, not to a tap anywhere on the track.

b) the slider should evaluate at the directionality of the initial drag, if that doesn't match the sliders orientation, no change should occur and the remainder of the drag operation should be ignored.

c) (if impossible): if a slider does respond to a drag, that same drag should not also cause the screen to scroll as it does right now.

With these changes it would be possible to scroll a list of sliders without having to worry about accidental value changes.

@toddparker
Copy link
Contributor

For a, there are a lot fo non-touch mobile platforms (WP7, WebOS) so the only way to use the slider is to tap the track or use the input, sliding the handle won't work so this would make these platforms break.

We can look at b and c, but since this is a feature request, we're going to close this until we schedule this. Mind linking this issue from the feature request wiki page?

@gknops
Copy link
Author

gknops commented Apr 20, 2012

I envisioned a as an option, possibly enabled via a class similar to ui-hidden-accessible and others. As requested I linked this issue to the feature request page.

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

No branches or pull requests

2 participants