Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Courses
Jupyter Notebook POuL
Commits
7623e2ab
Verified
Commit
7623e2ab
authored
Apr 20, 2021
by
Roberto Bochet
Browse files
Changed the auto scroll behaviour to smooth
parent
da3c0fdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/.jupyter/custom/custom.js
View file @
7623e2ab
...
...
@@ -7,7 +7,7 @@ let autoscroll = () => {
if
(
dy
<
0
)
dy
=
0
;
container
.
scrollTo
p
=
cell
.
offsetTop
-
dy
;
container
.
scrollTo
({
top
:
cell
.
offsetTop
-
dy
,
behavior
:
'
smooth
'
})
;
};
$
([
IPython
.
events
]).
on
(
"
select.Cell
"
,
autoscroll
);
...
...
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