This project is archived and is in readonly mode.

#325 ✓wontfix
Clément Hallet

Slider : make the drag to begin even when a click is fired from outside the knob

Reported by Clément Hallet | July 13th, 2010 @ 10:28 AM | in 1.2.5.1

Hello !

Working with Sliders, i think that one thing may be uncomfortable for users :

When mousedown on the main element, the knob is moving ant it's ok. But then, you may want to not mouseup, and continue to move the knob inside the main element (like you'd do by starting with a mousedown on the knob).

That's not happening for now : the knob doesn't move.

In order to do it, i made a little change at the very end of the Slider.clickedElement function :

this.knob.fireEvent('mousedown', event);

It's using the same element event for the knob event, and start the drag at the same point.

It looks like a hack, but it seems to work fine. You can see that in action here, on the player's progress bar

Comments and changes to this ticket

  • Clément Hallet

    Clément Hallet July 13th, 2010 @ 10:31 AM

    It could also be applied via an option, depending on the developer's choice.

  • Clément Hallet

    Clément Hallet July 17th, 2010 @ 12:35 AM

    • Tag set to slider drag event patch
  • Arian

    Arian September 20th, 2010 @ 05:06 PM

    • Milestone set to 1.2.5.1
    • State changed from “new” to “wontfix”
    • Assigned user set to “Arian”
    • Milestone order changed from “197500” to “0”

    I don't think this is very common in OSes, and I don't see the benefit actually, and you're right about the this.knob.fireEvent('mousedown', event); it does look like a hack :)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions

People watching this ticket

Pages