Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,712
Issues
1,712
List
Boards
Labels
Service Desk
Milestones
Merge Requests
87
Merge Requests
87
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
15ff8644
Commit
15ff8644
authored
Mar 05, 2014
by
Marc Duez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interface : fix drag/drop visu-separator behavior
- no more unwanted selection - magnetic border effect
parent
40f2c360
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
browser/css/vidjil.less
browser/css/vidjil.less
+11
-0
browser/js/builder.js
browser/js/builder.js
+8
-2
No files found.
browser/css/vidjil.less
View file @
15ff8644
...
...
@@ -55,6 +55,11 @@ ul{
width: 100%;
overflow: hidden;
background: @background;
-khtml-user-select: none;
-webkit-user-select: none;
-moz-user-select: -moz-none;
-ms-user-select: none;
user-select: none;
}
#switch{
...
...
@@ -70,6 +75,11 @@ ul{
height : 100%;
overflow-y : none;
float : left;
-khtml-user-select: auto;
-webkit-user-select: auto;
-moz-user-select: auto;
-ms-user-select: auto;
user-select: auto;
}
#visu, #visu2 {
...
...
@@ -750,6 +760,7 @@ span .substitution{
#visu-separator {
height: 0px;
cursor: move;
cursor: -webkit-grab;
position: relative;
top: -20px;
...
...
browser/js/builder.js
View file @
15ff8644
...
...
@@ -42,8 +42,10 @@ Builder.prototype = {
var
height2
=
position
/
total_height
*
100
if
(
height2
>
95
)
height2
=
99
;
if
(
height2
<
5
)
height2
=
0
;
if
(
height2
>
99
||
height2
<
1
)
this
.
dropSeparator
()
if
(
height2
>
90
)
height2
=
99
;
if
(
height2
<
10
)
height2
=
0
;
var
height1
=
100
-
height2
...
...
@@ -58,6 +60,10 @@ Builder.prototype = {
if
(
this
.
drag_separator
){
this
.
m
.
resize
();
this
.
drag_separator
=
false
;
var
sel
=
window
.
getSelection
();
sel
.
removeAllRanges
();
console
.
log
(
"
drop
"
);
}
}
...
...
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