Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
845bc042
Commit
845bc042
authored
Oct 17, 2022
by
Niccolò Venerandi
Committed by
Nate Graham
Oct 17, 2022
Browse files
Make drag and drop of pager more reliable
BUG:460541
BUG:460545
(cherry picked from commit
463b6798
)
parent
705ab309
Pipeline
#249578
passed with stage
in 8 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
applets/pager/package/contents/ui/main.qml
View file @
845bc042
...
...
@@ -512,8 +512,6 @@ MouseArea {
border.color
:
(
model
.
IsActive
===
true
)
?
windowActiveBorderColor
:
windowInactiveBorderColor
Behavior
on
x
{
NumberAnimation
{
duration
:
PlasmaCore
.
Units
.
longDuration
;
easing.type
:
Easing
.
OutCubic
}
}
Behavior
on
y
{
NumberAnimation
{
duration
:
PlasmaCore
.
Units
.
longDuration
;
easing.type
:
Easing
.
OutCubic
}
}
Behavior
on
width
{
NumberAnimation
{
duration
:
PlasmaCore
.
Units
.
longDuration
;
easing.type
:
Easing
.
OutCubic
}
}
Behavior
on
height
{
NumberAnimation
{
duration
:
PlasmaCore
.
Units
.
longDuration
;
easing.type
:
Easing
.
OutCubic
}
}
Behavior
on
color
{
ColorAnimation
{
duration
:
PlasmaCore
.
Units
.
longDuration
;
easing.type
:
Easing
.
OutCubic
}
}
...
...
@@ -524,11 +522,12 @@ MouseArea {
anchors.fill
:
parent
drag.target
:
windowRect
drag.threshold
:
1
drag.axis
:
Drag
.
XAndYAxis
drag.minimumX
:
-
windowRect
.
width
/
2
drag.maximumX
:
root
.
width
-
windowRect
.
width
/
2
drag.minimumY
:
-
windowRect
.
height
/
2
drag.maximumY
:
root
.
height
-
windowRect
.
height
/
2
drag.minimumX
:
0
drag.maximumX
:
root
.
width
-
windowRect
.
width
drag.minimumY
:
0
drag.maximumY
:
root
.
height
-
windowRect
.
height
drag.onActiveChanged
:
{
root
.
dragging
=
drag
.
active
;
...
...
@@ -540,7 +539,7 @@ MouseArea {
const
value
=
root
.
mapFromItem
(
clipRect
,
windowRect
.
x
,
windowRect
.
y
);
windowRect
.
parent
=
root
;
windowRect
.
x
=
value
.
x
;
windowRect
.
y
=
value
.
y
windowRect
.
y
=
value
.
y
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment