# \[Bug-12734\] Draggable components don't work well with rotation

**URL:** <https://forum.inductiveautomation.com/t/bug-12734-draggable-components-dont-work-well-with-rotation/22343>\
**Category:** Ignition Early Access\
**Created:** [February 5, 2019, 12:24pm UTC](https://forum.inductiveautomation.com/t/bug-12734-draggable-components-dont-work-well-with-rotation/22343 "2019-02-05T12:24:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [February 5, 2019, 12:24pm UTC](https://forum.inductiveautomation.com/t/bug-12734-draggable-components-dont-work-well-with-rotation/22343/1 "2019-02-05T12:24:16Z")

</div>

When you rotate a draggable component (f.e. a Map or a Slider) using the Angle parameter, the drag still listens to the original direction instead of the rotated direction.

I don’t know if it’s important for these components. For the Slider there’s the horizontal vs vertical option anyway. And for maps it will be difficult (OpenLayers has a rotate option, but Leaflet has a long-standing open issue on it: [https://github.com/Leaflet/Leaflet/issues/268](https://github.com/Leaflet/Leaflet/issues/268) )

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [February 13, 2019, 5:04pm UTC](https://forum.inductiveautomation.com/t/bug-12734-draggable-components-dont-work-well-with-rotation/22343/2 "2019-02-13T17:04:04Z")

</div>

It’s important enough that we should fix the issue; input components should always respond well to actual input, and so a Slider which tracks up-down during left-right input is not something we want.

I’ve opened an internal ticket for this issue.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [February 13, 2019, 5:04pm UTC](https://forum.inductiveautomation.com/t/bug-12734-draggable-components-dont-work-well-with-rotation/22343/3 "2019-02-13T17:04:26Z")

</div>

These are good observations, thanks. I would definitely say that rotation is still a work in progress in Perspective.

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [February 14, 2019, 7:03am UTC](https://forum.inductiveautomation.com/t/bug-12734-draggable-components-dont-work-well-with-rotation/22343/4 "2019-02-14T07:03:52Z")

</div>

> [@Carl.Gould](#):
>
> I would definitely say that rotation is still a work in progress in Perspective.

It's a lot more usable than rotation in Vision. Certainly with the rotation center that can be passed.

And there's also the option to disable the rotation for the slider, given the 90° angles are already present via other options.

---

<div class="post-metadata">

**Author:** ![alan\_pereira](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alan_pereira/32/79668_2.png) [@alan\_pereira](https://forum.inductiveautomation.com/u/alan_pereira)\
**Post date:** [May 29, 2019, 7:30pm UTC](https://forum.inductiveautomation.com/t/bug-12734-draggable-components-dont-work-well-with-rotation/22343/5 "2019-05-29T19:30:44Z")

</div>

Any follow-up on this bug?  
I'm trying to use the linear scale component in horizontal orientation. The rotation doesn't work well and there's no 'orientation' property. I also tried the 'moving analog indicator' component because it would suffice for what I need. But all of them have the same issue.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 29, 2019, 7:36pm UTC](https://forum.inductiveautomation.com/t/bug-12734-draggable-components-dont-work-well-with-rotation/22343/6 "2019-05-29T19:36:58Z")

</div>

Yes, actually. We have a developer currently working on making component rotation behave like a sane person would expect, AND we have a new rotation “UI/UX” in the pipeline which should be out in the coming months. Both of these are not likely until probably 8.0.4 at the earliest, but there is extensive current work underway to make component rotation not only behave as expected, but also to make it easier.

---

<div class="post-metadata">

**Author:** ![osolorzano](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/osolorzano/32/6432_2.png) [@osolorzano](https://forum.inductiveautomation.com/u/osolorzano)\
**Post date:** [May 29, 2019, 9:09pm UTC](https://forum.inductiveautomation.com/t/bug-12734-draggable-components-dont-work-well-with-rotation/22343/7 "2019-05-29T21:09:01Z")

</div>

Just as another note, the Linear Scale _and_ Moving Analog Indicator components auto rotate if the component is sized to be “more horizontal”. So if you drop one of those components and then instead of rotating it, just resize it so its width is greater than its height the internal parts of the component will make a 90 degree turn and function horizontally.

---

<div class="post-metadata">

**Author:** ![alan\_pereira](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alan_pereira/32/79668_2.png) [@alan\_pereira](https://forum.inductiveautomation.com/u/alan_pereira)\
**Post date:** [May 29, 2019, 9:11pm UTC](https://forum.inductiveautomation.com/t/bug-12734-draggable-components-dont-work-well-with-rotation/22343/8 "2019-05-29T21:11:17Z")

</div>

That's all I needed. Thanks.

---

<div class="post-metadata">

**Author:** ![awalker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awalker/32/6874_2.png) [@awalker](https://forum.inductiveautomation.com/u/awalker)\
**Post date:** [October 28, 2019, 6:03pm UTC](https://forum.inductiveautomation.com/t/bug-12734-draggable-components-dont-work-well-with-rotation/22343/9 "2019-10-28T18:03:19Z")

</div>

This issue was fixed in the 8.0.6 nightly build that was uploaded Friday (10/25).

---

<div class="post-metadata">

**Author:** ![r.p](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@r.p](https://forum.inductiveautomation.com/u/r.p)\
**Post date:** [February 1, 2021, 9:04am UTC](https://forum.inductiveautomation.com/t/bug-12734-draggable-components-dont-work-well-with-rotation/22343/10 "2021-02-01T09:04:52Z")

</div>

Hello,  
sorry if I reopen a closed topic but I’m on Ignition Version: **8.1.1** and I still see this weird behaviour of the map component that, using the Angle parameter, the drag still listens to the original direction instead of the rotated direction.  
Could it be a regression?

---

<div class="post-metadata">

**Author:** ![osolorzano](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/osolorzano/32/6432_2.png) [@osolorzano](https://forum.inductiveautomation.com/u/osolorzano)\
**Post date:** [February 3, 2021, 12:05am UTC](https://forum.inductiveautomation.com/t/bug-12734-draggable-components-dont-work-well-with-rotation/22343/11 "2021-02-03T00:05:06Z")

</div>

The map component’s functionality with rotation is pretty much forever bound to not function correctly because of the Leaflet issue that is linked in the original post. While we can rotate the map completely, interacting with the map is handled by the underlying library and judging by the posts on that issue it won’t be fixed any time soon.
