# Need to disable the drag property for the embedded view

**URL:** <https://forum.inductiveautomation.com/t/need-to-disable-the-drag-property-for-the-embedded-view/92513>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [June 28, 2024, 4:16am UTC](https://forum.inductiveautomation.com/t/need-to-disable-the-drag-property-for-the-embedded-view/92513 "2024-06-28T04:16:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Learner\_Ignition](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@Learner\_Ignition](https://forum.inductiveautomation.com/u/Learner_Ignition)\
**Post date:** [June 28, 2024, 4:16am UTC](https://forum.inductiveautomation.com/t/need-to-disable-the-drag-property-for-the-embedded-view/92513/1 "2024-06-28T04:16:01Z")

</div>

Hi  
I have a flex container holding a embedded view (containing flex container view).  
When I load the page on the browser, I am able to drag the component which is there in the embedded view.

I don't want anyone to drag the component, it should be at fixed position always.

Thanks

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 28, 2024, 5:44am UTC](https://forum.inductiveautomation.com/t/need-to-disable-the-drag-property-for-the-embedded-view/92513/2 "2024-06-28T05:44:30Z")

</div>

That's not supposed to happen. You'll have to give us more details, maybe paste the view's json here so we can see for ourselves.

---

<div class="post-metadata">

**Author:** ![Learner\_Ignition](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@Learner\_Ignition](https://forum.inductiveautomation.com/u/Learner_Ignition)\
**Post date:** [June 28, 2024, 6:38am UTC](https://forum.inductiveautomation.com/t/need-to-disable-the-drag-property-for-the-embedded-view/92513/3 "2024-06-28T06:38:45Z")

</div>

video attached

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 28, 2024, 6:39am UTC](https://forum.inductiveautomation.com/t/need-to-disable-the-drag-property-for-the-embedded-view/92513/4 "2024-06-28T06:39:52Z")

</div>

That doesn't help me help you... I can't diagnose much from this.

---

<div class="post-metadata">

**Author:** ![Learner\_Ignition](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@Learner\_Ignition](https://forum.inductiveautomation.com/u/Learner_Ignition)\
**Post date:** [June 28, 2024, 6:51am UTC](https://forum.inductiveautomation.com/t/need-to-disable-the-drag-property-for-the-embedded-view/92513/5 "2024-06-28T06:51:43Z")

</div>

This is the view, embedded into the main view.  
`{ "custom": {}, "params": {}, "props": { "defaultSize": { "height": 1200, "width": 1850 } }, "root": { "children": [{ "children": [ { "meta": { "name": "PowerChart" }, "position": { "basis": "800px", "grow": 1 }, "props": { "interaction": { "chartZoomLevel": 1, "rangeZoomLevel": 1 } }, "type": "ia.chart.powerchart" }], "meta": { "name": "FlexContainer_0" }, "position": { "basis": "600px" }, "type": "ia.container.flex" } ], "meta": { "name": "root" }, "props": { "direction": "column", "style": { "classes": "Basic/BackgroundColor/MediumDark", "overflow": "hidden" } }, "type": "ia.container.flex" } }`

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 28, 2024, 6:52am UTC](https://forum.inductiveautomation.com/t/need-to-disable-the-drag-property-for-the-embedded-view/92513/6 "2024-06-28T06:52:39Z")

</div>

That's not a view json.

Shift + right click on the view in the project browser, then select "copy json"

edit:  
If you can, export both the main view and the embedded view. This might be easier.

---

<div class="post-metadata">

**Author:** ![Learner\_Ignition](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@Learner\_Ignition](https://forum.inductiveautomation.com/u/Learner_Ignition)\
**Post date:** [June 28, 2024, 10:18am UTC](https://forum.inductiveautomation.com/t/need-to-disable-the-drag-property-for-the-embedded-view/92513/7 "2024-06-28T10:18:23Z")

</div>

Thanks @pascal.fragnoud  
I am able to fix the issue  
It was because of the transform style onPointerMove script.
