Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
f9f71f78
Commit
f9f71f78
authored
Jul 20, 2017
by
luyikei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Timeline: Don't use magnet between two selected clips
parent
0dde8cda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/Gui/timeline/Track.qml
src/Gui/timeline/Track.qml
+4
-2
No files found.
src/Gui/timeline/Track.qml
View file @
f9f71f78
...
...
@@ -94,8 +94,10 @@ Item {
var
cw
=
ftop
(
clip
[
"
end
"
]
-
clip
[
"
begin
"
]
+
1
);
// Set a right position
//
// HACK: If magnetic mode, consider clips bigger.
var
clipMargin
=
useMagneticMode
?
magneticMargin
:
0
;
// HACK: If magnetic mode, consider clips bigger
// but not if it's also selected because both of them will be moving
// and we want to keep the same distance between them as much as possible
var
clipMargin
=
useMagneticMode
&&
findClipItem
(
clip
.
uuid
).
selected
===
false
?
magneticMargin
:
0
;
if
(
cx
+
cw
>
newX
&&
newX
+
sw
>
cx
)
isCollided
=
true
;
...
...
Write
Preview
Markdown
is supported
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