Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
0e2843f2
Commit
0e2843f2
authored
Dec 10, 2019
by
Jean-Baptiste Mardelle
Browse files
If clip resize not sticking to start/end
parent
61433717
Pipeline
#11646
passed with stage
in 14 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/Clip.qml
View file @
0e2843f2
...
...
@@ -857,8 +857,8 @@ Rectangle {
if
(
mouse
.
buttons
===
Qt
.
LeftButton
)
{
var
delta
=
Math
.
round
((
trimIn
.
x
)
/
timeScale
)
if
(
delta
!==
0
)
{
if
(
delta
<
-
modelStar
t
)
{
delta
=
-
modelStar
t
if
(
maxDuration
>
0
&&
delta
<
-
inPoin
t
)
{
delta
=
-
inPoin
t
}
var
newDuration
=
clipDuration
-
delta
sizeChanged
=
true
...
...
@@ -938,6 +938,9 @@ Rectangle {
onPositionChanged
:
{
if
(
mouse
.
buttons
===
Qt
.
LeftButton
)
{
var
newDuration
=
Math
.
round
((
parent
.
x
+
parent
.
width
)
/
timeScale
)
if
(
maxDuration
>
0
&&
newDuration
>
maxDuration
-
inPoint
)
{
newDuration
=
maxDuration
-
inPoint
}
if
(
newDuration
!=
clipDuration
)
{
sizeChanged
=
true
clipRoot
.
trimmingOut
(
clipRoot
,
newDuration
,
mouse
,
shiftTrim
,
controlTrim
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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