Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
PhonoDrop
Commits
77d1cbfc
Commit
77d1cbfc
authored
Mar 21, 2021
by
Sylvain Coulange
🌼
Browse files
correction bug position curseur quand space()
parent
b0e8b277
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/scripts/phonodrop_v2.js
View file @
77d1cbfc
...
...
@@ -295,7 +295,7 @@ function space() {
var
anchor
=
document
.
getElementById
(
'
anchor
'
)
anchor
.
style
.
left
=
lastSelect
.
offsetLeft
+
lastSelect
.
offsetWidth
+
document
.
getElementById
(
'
spaceWidth
'
).
valueAsNumber
+
"
px
"
anchor
.
style
.
top
=
lastSelect
.
offsetTop
+
"
px
"
// remonter le curseur de la moitié de sa hauteur
anchor
.
style
.
top
=
lastSelect
.
offsetTop
+
lastSelect
.
offsetHeight
-
55
+
"
px
"
// remonter le curseur de la moitié de sa hauteur
anchor
.
style
.
display
=
"
block
"
lastSelect
=
anchor
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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