Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
bf731086
Commit
bf731086
authored
Apr 14, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Calls/IncallFullscreenWindow): better preview move
parent
341a8f48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
24 deletions
+30
-24
IncallFullscreenWindow.qml
...one-desktop/ui/views/App/Calls/IncallFullscreenWindow.qml
+30
-24
No files found.
linphone-desktop/ui/views/App/Calls/IncallFullscreenWindow.qml
View file @
bf731086
...
...
@@ -328,8 +328,14 @@ Window {
Component
{
id
:
cameraPreview
MouseArea
{
property
bool
held
:
false
Camera
{
Drag.active
:
cameraDrag
.
held
Drag.source
:
cameraDrag
Drag.hotSpot.x
:
width
/
2
Drag.hotSpot.y
:
height
/
2
call
:
incall
.
call
isPreview
:
true
height
:
CallStyle
.
actionArea
.
userVideo
.
height
width
:
CallStyle
.
actionArea
.
userVideo
.
width
...
...
@@ -337,34 +343,34 @@ Window {
x
:
incall
.
width
/
2
-
width
/
2
y
:
incall
.
height
-
height
MouseArea
{
id
:
cameraDrag
property
bool
held
:
false
anchors.fill
:
parent
drag
{
axis
:
Drag
.
XandYAxis
target
:
camera
target
:
parent
}
onPressed
:
held
=
true
onReleased
:
{
held
=
false
y
+=
camera
.
y
x
+=
camera
.
x
camera
.
x
=
0
camera
.
y
=
0
if
(
parent
.
x
<
0
)
{
parent
.
x
=
0
}
else
if
(
parent
.
x
+
parent
.
width
>=
incall
.
width
)
{
parent
.
x
=
incall
.
width
-
parent
.
width
}
Camera
{
id
:
camera
Drag.active
:
parent
.
held
Drag.source
:
parent
Drag.hotSpot.x
:
width
/
2
Drag.hotSpot.y
:
height
/
2
call
:
incall
.
call
isPreview
:
true
height
:
CallStyle
.
actionArea
.
userVideo
.
height
width
:
CallStyle
.
actionArea
.
userVideo
.
width
if
(
parent
.
y
<
0
)
{
parent
.
y
=
0
}
else
if
(
parent
.
y
+
parent
.
height
>=
incall
.
height
)
{
parent
.
y
=
incall
.
height
-
parent
.
height
}
}
}
}
}
...
...
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