Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7a3c88f1
Commit
7a3c88f1
authored
Apr 03, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
a82cec1f
bc696947
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
app/assets/javascripts/vue_shared/components/diff_viewer/viewers/image_diff/onion_skin_viewer.vue
...ents/diff_viewer/viewers/image_diff/onion_skin_viewer.vue
+1
-1
app/assets/javascripts/vue_shared/components/diff_viewer/viewers/image_diff/swipe_viewer.vue
...omponents/diff_viewer/viewers/image_diff/swipe_viewer.vue
+7
-3
No files found.
app/assets/javascripts/vue_shared/components/diff_viewer/viewers/image_diff/onion_skin_viewer.vue
View file @
7a3c88f1
...
@@ -102,7 +102,7 @@ export default {
...
@@ -102,7 +102,7 @@ export default {
:style=
"
{
:style=
"
{
width: onionMaxPixelWidth,
width: onionMaxPixelWidth,
height: onionMaxPixelHeight,
height: onionMaxPixelHeight,
'user-select': dragging
=== true ? 'none' : ''
,
'user-select': dragging
? 'none' : null
,
}"
}"
class="onion-skin-frame"
class="onion-skin-frame"
>
>
...
...
app/assets/javascripts/vue_shared/components/diff_viewer/viewers/image_diff/swipe_viewer.vue
View file @
7a3c88f1
...
@@ -68,12 +68,10 @@ export default {
...
@@ -68,12 +68,10 @@ export default {
},
},
startDrag
()
{
startDrag
()
{
this
.
dragging
=
true
;
this
.
dragging
=
true
;
document
.
body
.
style
.
userSelect
=
'
none
'
;
document
.
body
.
addEventListener
(
'
mousemove
'
,
this
.
dragMove
);
document
.
body
.
addEventListener
(
'
mousemove
'
,
this
.
dragMove
);
},
},
stopDrag
()
{
stopDrag
()
{
this
.
dragging
=
false
;
this
.
dragging
=
false
;
document
.
body
.
style
.
userSelect
=
''
;
document
.
body
.
removeEventListener
(
'
mousemove
'
,
this
.
dragMove
);
document
.
body
.
removeEventListener
(
'
mousemove
'
,
this
.
dragMove
);
},
},
prepareSwipe
()
{
prepareSwipe
()
{
...
@@ -104,7 +102,13 @@ export default {
...
@@ -104,7 +102,13 @@ export default {
<
template
>
<
template
>
<div
class=
"swipe view"
>
<div
class=
"swipe view"
>
<div
ref=
"swipeFrame"
class=
"swipe-frame"
>
<div
ref=
"swipeFrame"
:style=
"
{
'user-select': dragging ? 'none' : null,
}"
class="swipe-frame"
>
<image-viewer
<image-viewer
key=
"swipeOldImg"
key=
"swipeOldImg"
ref=
"swipeOldImg"
ref=
"swipeOldImg"
...
...
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