# I cannot move the dmn diagram on the viewer

**URL:** <https://forum.bpmn.io/t/i-cannot-move-the-dmn-diagram-on-the-viewer/11280>\
**Category:** Developers\
**Created:** [July 5, 2024, 10:40am UTC](https://forum.bpmn.io/t/i-cannot-move-the-dmn-diagram-on-the-viewer/11280 "2024-07-05T10:40:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![banatulmontan2013](https://forum.bpmn.io/user_avatar/forum.bpmn.io/banatulmontan2013/32/5527_2.png) [@banatulmontan2013](https://forum.bpmn.io/u/banatulmontan2013)\
**Post date:** [July 5, 2024, 10:40am UTC](https://forum.bpmn.io/t/i-cannot-move-the-dmn-diagram-on-the-viewer/11280/1 "2024-07-05T10:40:13Z")

</div>

Hello everyone. I really need your help. I want to add the possibility to click on the DMN diagram, keep the clicked mouse and move the diagram.

I want the same functionality as here: [https://demo.bpmn.io/dmn/s/check-order](https://demo.bpmn.io/dmn/s/check-order)

I have the next functions:  
public changeNavigation($event?: boolean): void {  
this.navigationEnabled$.next($event);  
$event ? this.enableNavigation() : this.disableNavigation();  
}  
public enableNavigation(): void {  
try {  
const handTool = this.getHandTool();  
this.activateHandTool(handTool);  
} catch (error) {  
Logger.get(DmnDiagramViewerComponent.LOGGER\_IDENT).error(error.message);  
}  
}

public disableNavigation(): void {  
try {  
const handTool = this.getHandTool();  
this.deactivateHandTool(handTool);  
} catch (error) {  
Logger.get(DmnDiagramViewerComponent.LOGGER\_IDENT).error(error.message);  
}  
}

private getHandTool() {  
const activeViewer = this.dmnViewer.getActiveViewer();  
const handTool = activeViewer.get(‘handTool’); // Use the registered name for the hand tool  
if (!handTool) {  
throw new Error(‘Hand tool is not available.’);  
}  
return handTool;  
}

private activateHandTool(handTool: any) {  
if (handTool.activateHand) {  
handTool.activateHand();  
} else {  
throw new Error(‘Hand tool activation method is not available.’);  
}  
}

private deactivateHandTool(handTool: any) {  
if (handTool.deactivate) {  
handTool.deactivate();  
} else {  
throw new Error(‘Hand tool deactivation method is not available.’);  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![philippfromme](https://forum.bpmn.io/user_avatar/forum.bpmn.io/philippfromme/32/2803_2.png) [@philippfromme](https://forum.bpmn.io/u/philippfromme)\
**Post date:** [July 9, 2024, 8:06am UTC](https://forum.bpmn.io/t/i-cannot-move-the-dmn-diagram-on-the-viewer/11280/2 "2024-07-09T08:06:55Z")

</div>

Can you elaborate on what feature you want to implement? All functionality found at [https://demo.bpmn.io/dmn/s/check-order](https://demo.bpmn.io/dmn/s/check-order) comes built-in with dmn-js.

---

<div class="post-metadata">

**Author:** ![barmac](https://forum.bpmn.io/user_avatar/forum.bpmn.io/barmac/32/974_2.png) [@barmac](https://forum.bpmn.io/u/barmac)\
**Post date:** [July 9, 2025, 10:10am UTC](https://forum.bpmn.io/t/i-cannot-move-the-dmn-diagram-on-the-viewer/11280/3 "2025-07-09T10:10:20Z")

</div>

Closed on July 9, 2025, 10:10am UTC

Closing old topics.
