Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Clicking on left pointer is triggering the right pointer #8

Closed
jtomaszewski opened this issue Feb 26, 2014 · 1 comment
Closed

Clicking on left pointer is triggering the right pointer #8

jtomaszewski opened this issue Feb 26, 2014 · 1 comment
Labels
Milestone

Comments

@jtomaszewski
Copy link

My situation:
I have a slider with two knobs (pointers).

It's working great (thanks for the gem!), but: clicking on the left pointer begins in fact clicks on right pointer and starts to move the range as I wanted to change the right's end of range. Thus, moving the minimum limit of the range is really difficult for the user.

Let's look at the screen:
image

When I looked into source:
.input.high has the width as the yellow rectangle on the picture, but should be of width of the green square.

.input.high and .input.low offsets should be -= $('.pointer').width()

I wanted to changed it but unfortunately source code currently is hardly readable right now (seems like it's translated from coffescript and there are no .coffee files here).

Meanwhile, if someone'd have the same issue, here's quick fix:

slider .input.high {
  margin-left: 20px; // if your span.pointer has 20px width
}
@drgould drgould added this to the v0.2.0 milestone Feb 26, 2014
@drgould drgould added the bug label Feb 26, 2014
@drgould
Copy link
Contributor

drgould commented Feb 26, 2014

Yeah, I noticed this too while refactoring and reworking the code. I've fixed the issue but I'm waiting to push it up until I've finished a few other fixes and enhancements.

@drgould drgould closed this as completed Feb 26, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants