# Resize annotation event

**URL:** <https://pdfjs.community/t/resize-annotation-event/3590>\
**Category:** Technical Support\
**Created:** [January 31, 2025, 11:31am UTC](https://pdfjs.community/t/resize-annotation-event/3590 "2025-01-31T11:31:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev\_onehub](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dev\_onehub](https://pdfjs.community/u/dev_onehub)\
**Post date:** [January 31, 2025, 11:31am UTC](https://pdfjs.community/t/resize-annotation-event/3590/1 "2025-01-31T11:31:28Z")

</div>

**Which product are you using?**  
PDF.js Express

**PDF.js Express Version**  
8.7

**Detailed description of issue**

1. Is there any event to listen to when annotation is being resized by clicking and dragging their control handle ?
2. Is there any event to listen to when annotations are being dragged/moving using SelectionTool ?

Thank you

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [February 3, 2025, 6:31pm UTC](https://pdfjs.community/t/resize-annotation-event/3590/3 "2025-02-03T18:31:34Z")

</div>

Hello dev\_onehub,

1. Is there any event to listen to when annotation is being resized by clicking and dragging their control handle ?  
We dont have a direct event for when the control handle is being clicked, however we have an event that tracks when an annotation has been changed:

```javascript
annotationManager.addEventListener('annotationChanged', (annotations, action, info)=>{
  if(action === 'modify') {
   console.log("annotation has been changed")
  }
})

```

1. Is there any event to listen to when annotations are being dragged/moving using SelectionTool ?  
Similar to above you can listen to the annotationChanged event. Additionally you can trigger an event when the Select tool’s mouse move has been triggered by customizing the tool. See our docs here: [Customize PDF.js Express Viewer Annotations in Toolbar | Documentation](https://pdfjs.express/documentation/annotation/customizing-tools)
