Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Allow triggering with mousedown with button present

Oliver Günthere4d41a20969c
diff --git a/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts
index f542bee213d..12688ef64f2 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts
@@ -69,7 +69,7 @@ export function registerWorkPackageMouseHandler(this:void,
// handles change to existing work packages
bar.onmousedown = (ev:MouseEvent) => {
- if (ev.which === 1) {
+ if (!ev.button || ev.button === 0) {
// Left click only
workPackageMouseDownFn(ev);
}