# How do I change the Mouse 'drag' style on a rotary slider, so this will happen?

**URL:** <https://forum.juce.com/t/how-do-i-change-the-mouse-drag-style-on-a-rotary-slider-so-this-will-happen/54460>\
**Category:** General JUCE discussion\
**Created:** [January 10, 2023, 7:03pm UTC](https://forum.juce.com/t/how-do-i-change-the-mouse-drag-style-on-a-rotary-slider-so-this-will-happen/54460 "2023-01-10T19:03:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TrustedSteed](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/trustedsteed/32/13862_2.png) [@TrustedSteed](https://forum.juce.com/u/TrustedSteed)\
**Post date:** [January 10, 2023, 7:03pm UTC](https://forum.juce.com/t/how-do-i-change-the-mouse-drag-style-on-a-rotary-slider-so-this-will-happen/54460/1 "2023-01-10T19:03:34Z")

</div>

I have some rotary sliders. To turn the knob around the rotary I have to basically click and drag on the blue round indicator to get it to move around.

Is there a way of changing the mouse-drag behavior so if I click and drag the mouse vertically continually upwards it will transport the blue indicator around the knob?

---

<div class="post-metadata">

**Author:** ![bayu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bayu/32/10757_2.png) [@bayu](https://forum.juce.com/u/bayu)\
**Post date:** [January 10, 2023, 7:23pm UTC](https://forum.juce.com/t/how-do-i-change-the-mouse-drag-style-on-a-rotary-slider-so-this-will-happen/54460/2 "2023-01-10T19:23:30Z")

</div>

```auto
juce::Slider slider;

slider.setSliderStyle (juce::Slider::RotaryVerticalDrag);

```

[from docs](https://docs.juce.com/master/classSlider.html#af1caee82552143dd9ff0fc9f0cdc0888)

---

<div class="post-metadata">

**Author:** ![TrustedSteed](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/trustedsteed/32/13862_2.png) [@TrustedSteed](https://forum.juce.com/u/TrustedSteed)\
**Post date:** [January 10, 2023, 7:27pm UTC](https://forum.juce.com/t/how-do-i-change-the-mouse-drag-style-on-a-rotary-slider-so-this-will-happen/54460/3 "2023-01-10T19:27:25Z")

</div>

perfect 👍
