Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
8ee5d4fb
Commit
8ee5d4fb
authored
Jun 17, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable delay on scrolling
parent
c0813320
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+10
-4
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
8ee5d4fb
...
...
@@ -88,19 +88,23 @@ function Page_Distrubion(socket) {
var
page
=
{
go
:
{
down
:
function
(
height
)
{
down
:
function
(
height
,
delay
)
{
if
(
height
===
undefined
)
height
=
$
(
'
body
'
).
height
();
if
(
delay
===
undefined
)
delay
=
0
;
debug
(
2
,
'
scrolling page down - height
'
,
height
);
$
(
'
html,body
'
).
animate
({
scrollTop
:
height
},
0
);
},
up
:
function
()
{
up
:
function
(
delay
)
{
if
(
delay
===
undefined
)
delay
=
0
;
debug
(
2
,
'
scrolling page up
'
);
$
(
'
html,body
'
).
animate
({
scrollTop
:
0
},
0
);
},
delay
);
}
}
};
...
...
@@ -701,7 +705,9 @@ function Page_Distrubion(socket) {
populate
();
// Init sticky-package back_on_top on click
$
(
'
#sticky-package
'
).
on
(
'
click
'
,
page
.
go
.
up
);
$
(
'
#sticky-package
'
).
on
(
'
click
'
,
function
()
{
page
.
go
.
up
(
100
);
});
// WORKAROUND:
// when page is loaded sidebar has offset().top
...
...
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