Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 24172dd3 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

correction bug position curseur au double click

parent c40f35be
......@@ -36,11 +36,11 @@ var lastSelect = "" // dernier élément modifié (pour la position du curseur)
// Au double-click sur la table: on pose le curseur
document.getElementById('multidraggable').addEventListener('dblclick', (e) => {
console.log("Position curseur (x,y)", e.pageX, e.pageY)
console.log("Position curseur (x,y)", e.layerX, e.layerY)
document.querySelectorAll('.selectedPhon').forEach( (el) => { el.classList.remove('selectedPhon') })
var anchor = document.getElementById('anchor')
anchor.style.left = e.pageX + "px"
anchor.style.top = e.pageY - 28 + "px" // remonter le curseur de la moitié de sa hauteur
anchor.style.left = e.layerX + "px"
anchor.style.top = e.layerY - 28 + "px" // remonter le curseur de la moitié de sa hauteur
anchor.style.display = "block"
lastSelect = anchor
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment