# HINT (dashboard) - How to use the slider without the second click (in Safari)

**URL:** https://discourse.nodered.org/t/hint-dashboard-how-to-use-the-slider-without-the-second-click-in-safari/579
**Category:** Share Your Projects
**Created:** [3 June 2018 16:24 UTC](https://discourse.nodered.org/t/hint-dashboard-how-to-use-the-slider-without-the-second-click-in-safari/579 "2018-06-03T16:24:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [3 June 2018 16:24 UTC](https://discourse.nodered.org/t/hint-dashboard-how-to-use-the-slider-without-the-second-click-in-safari/579/1 "2018-06-03T16:24:16Z")

</div>

If you have use a slider node, you've probably discovered that you must click on the circle to move it, then click again to get the slider to stay at it's last location.

You can fix this by adding a feedback loop to the slider:  
1 - add a trigger node to the output of the slider  
- send nothing  
- wait 250 milliseconds  
- extend the delay in a new message arrives  
- then send the latest msg object  
2 - connect the out of the trigger to the in of the slider  
3 - add a function node to the output of the trigger to process the last value from the slider.  
 ![slider_feedback_loop](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/38d0cb615591170fb79ef96f727d21ae47ef1036.png)

Here is the flow demonstrating this - note it also sets the slider vertically by defining the width as one block.

`[{"id":"d4be5ece.3b8d78","type":"debug","z":"e42d06a5.df9ff","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":510,"y":180,"wires":[]},{"id":"ac43824d.580d2","type":"ui_slider","z":"e42d06a5.df9ff","name":"Volume","label":"{{value}}","group":"2659c0e4.6c014","order":6,"width":"1","height":"6","passthru":false,"topic":"","min":0,"max":"10","step":".5","x":300,"y":60,"wires":[["83d24872.48751"]]},{"id":"ecd23153.bb942","type":"function","z":"e42d06a5.df9ff","name":"Volume","func":"var PlayVolume = global.get(\"PlayVolume\") || 0;\n//var playVolume = msg.payload;\nglobal.set(\"PlayVolume\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":300,"y":180,"wires":[["d4be5ece.3b8d78"]]},{"id":"83d24872.48751","type":"trigger","z":"e42d06a5.df9ff","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"250","extend":true,"units":"ms","reset":"","bytopic":"all","name":"250 ms","x":300,"y":120,"wires":[["ecd23153.bb942","ac43824d.580d2"]]},{"id":"2659c0e4.6c014","type":"ui_group","z":"","name":"Music Control","tab":"d52a1d78.5c6f38","disp":true,"width":"6","collapse":false},{"id":"d52a1d78.5c6f38","type":"ui_tab","z":"","name":"Music Controls","icon":"music_note","order":1}]`

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [3 June 2018 22:30 UTC](https://discourse.nodered.org/t/hint-dashboard-how-to-use-the-slider-without-the-second-click-in-safari/579/2 "2018-06-03T22:30:06Z")

</div>

Errrrt. Can you describe the original problem with more details? The slider should stop moving as soon as you let go.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [3 June 2018 22:56 UTC](https://discourse.nodered.org/t/hint-dashboard-how-to-use-the-slider-without-the-second-click-in-safari/579/3 "2018-06-03T22:56:51Z")

</div>

NodeRed 0.18.7  
Node 6.11.0  
Dashboard 2.9.4  
macOS Sierra 10.12.6  
I click-and-hold on the circle on the slider line and move it and then release the mouse and the circle keeps moving until I click again

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [3 June 2018 23:08 UTC](https://discourse.nodered.org/t/hint-dashboard-how-to-use-the-slider-without-the-second-click-in-safari/579/4 "2018-06-03T23:08:09Z")

</div>

Ahhhh it is a Safari issue - in Chrome and FireFox it works fine! Once I stop moving and release the button, the slider stops moving.
