Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
verona-modules-aspect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IQB
verona-modules-aspect
Commits
eecc706e
Commit
eecc706e
authored
5 months ago
by
rhenck
Browse files
Options
Downloads
Patches
Plain Diff
DropList: Prevent pickung up second element while holding (2 fingers)
#664
parent
0104a28b
No related branches found
No related tags found
No related merge requests found
Pipeline
#64612
failed
5 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
projects/common/components/input-elements/drop-list/drop-list.component.ts
+3
-0
3 additions, 0 deletions
...omponents/input-elements/drop-list/drop-list.component.ts
with
3 additions
and
0 deletions
projects/common/components/input-elements/drop-list/drop-list.component.ts
+
3
−
0
View file @
eecc706e
...
@@ -89,6 +89,9 @@ export class DropListComponent extends FormElementComponent implements OnInit {
...
@@ -89,6 +89,9 @@ export class DropListComponent extends FormElementComponent implements OnInit {
}
}
dragStart
(
event
:
DragStartEvent
,
item
:
DragNDropValueObject
,
index
:
number
,
sourceListComponent
:
DropListComponent
)
{
dragStart
(
event
:
DragStartEvent
,
item
:
DragNDropValueObject
,
index
:
number
,
sourceListComponent
:
DropListComponent
)
{
if
(
this
.
dragOpService
.
isDragActive
)
{
// Prevent pickung up second element while holding another (2 fingers)
return
;
}
this
.
dragOpService
.
startDrag
(
event
.
sourceElement
,
sourceListComponent
,
index
,
item
,
event
.
dragType
);
this
.
dragOpService
.
startDrag
(
event
.
sourceElement
,
sourceListComponent
,
index
,
item
,
event
.
dragType
);
this
.
dragImageRef
?.
instance
.
initDragPreview
(
item
,
event
.
sourceElement
,
event
.
x
,
event
.
y
);
this
.
dragImageRef
?.
instance
.
initDragPreview
(
item
,
event
.
sourceElement
,
event
.
x
,
event
.
y
);
document
.
body
.
classList
.
add
(
'
dragging-active
'
);
// add class for cursor while dragging
document
.
body
.
classList
.
add
(
'
dragging-active
'
);
// add class for cursor while dragging
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment