Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#1691 closed enhancement (wontfix)

slider handles cover slider handles on the left

Reported by: reh Owned by: paul
Priority: major Milestone:
Component: ui.core 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 15 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 15 years ago by reh

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

comment:2 Changed 15 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 15 years ago by reh

Attachment: slider-demo.zip added

comment:3 Changed 15 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 15 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 15 years ago by paul

Owner: set to paul
Status: newassigned

comment:6 Changed 15 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.

comment:7 Changed 15 years ago by (none)

Milestone: 1.2.2

Milestone 1.2.2 deleted

Note: See TracTickets for help on using tickets.