bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Add information regarding which side is used for Event Resize #9810

Open marciogurka opened 1 month ago

marciogurka commented 1 month ago

Forum post

"Hello Bryntum Team,

i am implementing the resize functionality for our events. Depending on which event-handle (left or right) the resizing is initiated with, different things should happen. However, i can not find a proper way to detect which handle is used for the resizing.

My work around so far is to check the "event.offsetX" (of the browser event, e.g. in the onBeforeEventResize) which gives me difference in pixels between the left edge of the actually rendered event and whereever my mouse position was when resize was initiated.

However, this workaround isn't really reliable regarding resolution and zoom changes. Is there a proper way to detect, which handle the resizing was initiated with?"