# Protect dashboard from accidental changes while touch scrolling

**URL:** <https://discourse.nodered.org/t/protect-dashboard-from-accidental-changes-while-touch-scrolling/43058>\
**Category:** Dashboard\
**Created:** [23 March 2021 03:02 UTC](https://discourse.nodered.org/t/protect-dashboard-from-accidental-changes-while-touch-scrolling/43058 "2021-03-23T03:02:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![m\_elias](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@m\_elias](https://discourse.nodered.org/u/m_elias)\
**Post date:** [23 March 2021 03:02 UTC](https://discourse.nodered.org/t/protect-dashboard-from-accidental-changes-while-touch-scrolling/43058/1 "2021-03-23T03:02:53Z")

</div>

I find I'm accidentally changing the values on 1x8 slider widgets while trying to scroll on a touch screen. I'm already trying to avoid touching the slider while scrolling but even then the slider will change. Anyone else deal with this?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 March 2021 07:21 UTC](https://discourse.nodered.org/t/protect-dashboard-from-accidental-changes-while-touch-scrolling/43058/2 "2021-03-23T07:21:37Z")

</div>

I disable scrolling and force the use of the menu.  
On another system I avoid the use of sliders and use drop downs with a range of various values instead. For example, for room temperature control I have a drop-down with temperature in 0.5 degree increments plus a low value for a room not in use setting.

---

<div class="post-metadata">

**Author:** ![m\_elias](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@m\_elias](https://discourse.nodered.org/u/m_elias)\
**Post date:** [24 March 2021 14:18 UTC](https://discourse.nodered.org/t/protect-dashboard-from-accidental-changes-while-touch-scrolling/43058/3 "2021-03-24T14:18:13Z")

</div>

Good suggestion but I'm finding the Dropdown doesn't display the input msg.payload like the Slider does. I have the Dropdown's options set as numbers (0-23, inc 1) and tried making sure msg.payload is an integer. The Dropdown node shows the input msg.payload but on the dashboard it doesn't. Some nodes like the Switch node have the option of displaying it's input or output but not the Dropdown. The Slider node doesn't have that option but it displays both input & output values.

---

<div class="post-metadata">

**Author:** ![m\_elias](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@m\_elias](https://discourse.nodered.org/u/m_elias)\
**Post date:** [24 March 2021 14:27 UTC](https://discourse.nodered.org/t/protect-dashboard-from-accidental-changes-while-touch-scrolling/43058/4 "2021-03-24T14:27:42Z")

</div>

It appears that I have to select the option _"If `msg` arrives on input, pass through to output"_ for the Dropdown to display any input msg.payload but in my situation that creates a feedback loop.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [24 March 2021 15:14 UTC](https://discourse.nodered.org/t/protect-dashboard-from-accidental-changes-while-touch-scrolling/43058/5 "2021-03-24T15:14:35Z")

</div>

> [@m\_elias](#):
>
> It appears that I have to select the option _"If `msg` arrives on input, pass through to output"_ f

That shouldn't be necessary. Can you share a test flow with a dropdown and some inject nodes that shows the problem?  
Are you using the latest version of node-red-dashboard?

---

<div class="post-metadata">

**Author:** ![m\_elias](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@m\_elias](https://discourse.nodered.org/u/m_elias)\
**Post date:** [27 March 2021 03:43 UTC](https://discourse.nodered.org/t/protect-dashboard-from-accidental-changes-while-touch-scrolling/43058/6 "2021-03-27T03:43:04Z")

</div>

```auto
[{"id":"1e5886f5.b54501","type":"ui_dropdown","z":"4c195d90.05acd4","name":"","label":"","tooltip":"","place":"","group":"8c76602a.3ae5f","order":0,"width":"8","height":"1","passthru":false,"multiple":false,"options":[{"label":"","value":1,"type":"num"},{"label":"","value":2,"type":"num"},{"label":"","value":3,"type":"num"}],"payload":"","topic":"","x":300,"y":160,"wires":[["ae83212a.9a679"]]},{"id":"ae83212a.9a679","type":"debug","z":"4c195d90.05acd4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":500,"y":160,"wires":[]},{"id":"f75998da.bfb058","type":"inject","z":"4c195d90.05acd4","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":90,"y":120,"wires":[["1e5886f5.b54501"]]},{"id":"fe764340.0a9d2","type":"inject","z":"4c195d90.05acd4","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"2","payloadType":"num","x":90,"y":160,"wires":[["1e5886f5.b54501"]]},{"id":"2a8c5629.91c9fa","type":"inject","z":"4c195d90.05acd4","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"3","payloadType":"num","x":90,"y":200,"wires":[["1e5886f5.b54501"]]},{"id":"8c76602a.3ae5f","type":"ui_group","name":"Test","tab":"bb4dc79a.2ffdf8","order":7,"disp":true,"width":"8","collapse":false},{"id":"bb4dc79a.2ffdf8","type":"ui_tab","name":"Sockets","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

```

After creating this test flow, and confirming that it demonstrated my issue, I updated all my nodes and now it appears to function as I expected. I'm now using node-red-dashboard 2.28.2

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 April 2021 03:43 UTC](https://discourse.nodered.org/t/protect-dashboard-from-accidental-changes-while-touch-scrolling/43058/7 "2021-04-10T03:43:31Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
