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
Marco Kellershoff
pwny.gorilla.moe
Commits
d86bf14a
Verified
Commit
d86bf14a
authored
Dec 11, 2018
by
Marco Kellershoff
🤸
Browse files
Add timeout to scrollToLine and gotoLine
parent
77db6b0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/assets/pwny.js
View file @
d86bf14a
...
...
@@ -373,18 +373,24 @@
var
column
=
url_params
.
get
(
"
c
"
)
||
0
;
EDITOR
.
scrollToLine
(
line
,
true
,
true
,
function
()
{}
);
EDITOR
.
gotoLine
(
line
,
column
,
true
setTimeout
(
function
()
{
EDITOR
.
scrollToLine
(
line
,
true
,
true
,
function
()
{}
);
EDITOR
.
gotoLine
(
line
,
column
,
true
);
EDITOR
.
focus
();
},
2000
);
EDITOR
.
focus
();
}
if
(
url_params
.
get
(
"
a
"
)
===
...
...
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