Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#1691 closed enhancement (wontfix)

slider handles cover slider handles on the left

Reported by: reh Owned by: paul
Priority: major Milestone: 1.2.2
Component: ui Version: 1.2.1
Keywords: slider Cc:
Blocked by: Blocking:

Description

I ran into a problem with the sliders (see slider demo page - 3. Multiple handles):

When I drag the left handle over the right handle I cannot move then left handle any more. The mouse grabs the right handle - which cannot be moved any further to the right to uncover the left handle.

This behaviour occurs because the hotspot of a handle is set to the center of the handle and if the hotspots of two handles meet, the right handle covers the left handle. I would like to set the hotspot for every handle separately. This would also allow using different background images for the left and right handle.

Attachments (1)

slider-demo.zip (60.6 KB) - added by reh 12 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 years ago by reh

I have added a option to set the hotspot of the handles (see slider-demo.zip)

comment:2 Changed 12 years ago by uprocka

thats a nice enhancement.

My idea was to give the lastly touched handle a higher z-index than the other sliders?

wouldn't this fix it?

Changed 12 years ago by reh

Attachment: slider-demo.zip added

comment:3 Changed 12 years ago by reh

I have extended ui.slider.js in the following ways:

  • hotspots for handles
  • moveTo() for multiple handles, startValues option
  • sliderReconfigure(), allows to change minValue, maxValue and stepping of a slider

this code is mainly untested and will probably break existing code

comment:4 in reply to:  2 Changed 12 years ago by reh

My idea was to give the lastly touched handle a higher z-index than the other sliders?

wouldn't this fix it?

modifying the z-Index would also be nice but would not solve my problem

comment:5 Changed 12 years ago by paul

Owner: set to paul
Status: newassigned

comment:6 Changed 12 years ago by paul

Resolution: wontfix
Status: assignedclosed

This won't be fixed because resolving it would cause a lot of other issues. Please change the zIndex yourself if you want to prevent that issue. Thanks.

Note: See TracTickets for help on using tickets.