# How to separate the left mouse click event from the left mouse drag time when operating a Markup node

**URL:** <https://discourse.slicer.org/t/how-to-separate-the-left-mouse-click-event-from-the-left-mouse-drag-time-when-operating-a-markup-node/24303>\
**Category:** Support\
**Created:** [July 14, 2022, 6:44am UTC](https://discourse.slicer.org/t/how-to-separate-the-left-mouse-click-event-from-the-left-mouse-drag-time-when-operating-a-markup-node/24303 "2022-07-14T06:44:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![1023185654](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/1023185654/32/15829_2.png) [@1023185654](https://discourse.slicer.org/u/1023185654)\
**Post date:** [July 14, 2022, 6:44am UTC](https://discourse.slicer.org/t/how-to-separate-the-left-mouse-click-event-from-the-left-mouse-drag-time-when-operating-a-markup-node/24303/1 "2022-07-14T06:44:49Z")

</div>

Operating system: unbuntu 18.04  
Slicer version: Slicer-4.13.0-2022-01-16-linux-amd64  
Expected behavior:add the control point when I press the left button,and Rotate the 3D model while holding and dragging the left mouse button  
Actual behavior:I set Leftbuttonpressevent to no event and SetEventTranslationClickAndDrag to add rotating 3d view event.but There is no effective on left button press event.

```auto
markupsWidget.SetEventTranslationClickAndDrag(markupsWidget.WidgetStateIdle, vtk.vtkCommand.LeftButtonPressEvent, vtk.vtkEvent.NoModifier, markupsWidget.WidgetStateRotate, markupsWidget.WidgetEventRotateStart, markupsWidget.WidgetEventRotateEnd)

```
