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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Main menu resizer: avoid text-selection (#8341)
Aleix Suauf49870e6e0b8
diff --git a/frontend/src/app/components/resizer/wp-resizer.component.ts b/frontend/src/app/components/resizer/wp-resizer.component.tsindex 9c02a732953..5a502c8afd5 100644--- a/frontend/src/app/components/resizer/wp-resizer.component.ts+++ b/frontend/src/app/components/resizer/wp-resizer.component.ts@@ -150,9 +150,6 @@ export class WpResizerDirective extends UntilDestroyedMixin implements OnInit, A}resizeMove(deltas:ResizeDelta) {- // Avoid text-selection while the user is dragging the resizer- deltas.origin.preventDefault();-// Get new value depending on the deltathis.elementWidth = this.elementWidth - deltas.relative.x;let newValue;diff --git a/frontend/src/app/modules/common/resizer/resizer.component.ts b/frontend/src/app/modules/common/resizer/resizer.component.tsindex 8a607aac87e..ab6801e7a09 100644--- a/frontend/src/app/modules/common/resizer/resizer.component.ts+++ b/frontend/src/app/modules/common/resizer/resizer.component.ts@@ -48,6 +48,7 @@ export class ResizerComponent implements OnDestroy {@HostListener('mousedown', ['$event'])@HostListener('touchstart', ['$event'])public startResize(event:any) {+ event.preventDefault();event.stopPropagation();// Only on left mouse click the resizing is started@@ -76,6 +77,7 @@ export class ResizerComponent implements OnDestroy {}private onMouseMove(event:any) {+ event.preventDefault();event.stopPropagation();this.oldX = this.newX;