Commit df4ed3c2 authored by Duhoux Pierre-Louis's avatar Duhoux Pierre-Louis

Fix issue on Jaiminisbox

Jaiminisbox creates a setInterval on keydown on up / down arrow. We prevent the keyup (which was the one clearing the interval...) but didn't handle the keydown on up / down arrows.
parent 16eaa71d
Pipeline #40841797 passed with stages
in 5 minutes and 16 seconds
......@@ -496,11 +496,11 @@ export default {
this.lastKeyPress = e.which
this.lastKeyPressTime = Date.now()
if (e.which === 87) { //W
if (e.which === 87 || e.which === 38) { //W or up arrow
window.scrollBy(0, -this.scrollStepWithKeys)
prevent()
}
if (e.which === 83) { //S
if (e.which === 83 || e.which === 40) { //S or down arrow
window.scrollBy(0, this.scrollStepWithKeys)
prevent()
}
......
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