BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1ae9c697
Commit
1ae9c697
authored
Apr 25, 2013
by
Sato Hiroyuki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Draging network graph is replaced by vertical scrolling.
parent
16d3425a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
branch-graph.js.coffee
app/assets/javascripts/branch-graph.js.coffee
+3
-14
No files found.
app/assets/javascripts/branch-graph.js.coffee
View file @
1ae9c697
...
...
@@ -122,22 +122,11 @@ class BranchGraph
bindEvents
:
->
drag
=
{}
element
=
@
element
dragger
=
(
event
)
->
element
.
scrollLeft
drag
.
sl
-
(
event
.
clientX
-
drag
.
x
)
element
.
scrollTop
drag
.
st
-
(
event
.
clientY
-
drag
.
y
)
element
.
on
mousedown
:
(
event
)
->
drag
=
x
:
event
.
clientX
y
:
event
.
clientY
st
:
element
.
scrollTop
()
sl
:
element
.
scrollLeft
()
$
(
window
).
on
"mousemove"
,
dragger
$
(
element
).
scroll
(
event
)
=>
@
renderPartialGraph
()
$
(
window
).
on
mouseup
:
=>
$
(
window
).
off
"mousemove"
,
dragger
@
renderPartialGraph
()
keydown
:
(
event
)
=>
# left
element
.
scrollLeft
element
.
scrollLeft
()
-
50
if
event
.
keyCode
is
37
...
...
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