slider icon indicating copy to clipboard operation
slider copied to clipboard

Wrong handle is being focused, when crossing

Open byCedric opened this issue 8 years ago • 3 comments

I was working on implementing keyboard support for the Range sliders as well. But as previously stated in the issue #131, I encountered some issues when using multiple handles within a Range slider.

Take a look at this:

s38lazuscn

What I'm doing here is moving the handle, with the mouse, across the other handle. The tooltip is being rendered correctly, but unfortunately the "focus" is left on the wrong handle. Or, the wrong handle is being moved. For mouse control this isn't much big of a deal, but for keyboard control its really not that great.

6ofduvfzna

byCedric avatar Jul 30 '17 12:07 byCedric

byCedric Thanks for your report.

The logic is correct at here, when you move across handle, actually the first handle is stoped at the second handle start point, then what you are draging is actually the second handle.

That is to say, when you move across handles, there is a active handle exchange happened, but users may not notice that, they looks like the first hanlde is acrosss the second.

But there do have bug as you report, the active handle state did't exchange correctly.

Since this bug is not very crucial,and i am busy right now, i will handle this when i got time.

PS. PR is welcome ~

paranoidjk avatar Jul 31 '17 02:07 paranoidjk

and it seems not support keyboardEvent to move handles. should it do ?

Robin-front avatar Aug 04 '17 09:08 Robin-front

@Robin-front I was the one who implemented it for simple sliders in PR #282. Because of this issue I withheld the implementation for ranges. I will add the PR for keyboard support in ranges tonight (GMT +02:00), because this is now a separate issue.

@paranoidjk If you think its wise to not yet support keyboard for ranges because of this, you can decline the coming PR. 😉

byCedric avatar Aug 04 '17 10:08 byCedric