mirror of
https://github.com/mehotkhan/BandersnatchInteractive.git
synced 2025-07-28 01:33:23 +00:00
assets/scripts.js: Add up/down keys to speed up/slow down video
Again, useful for debugging.
This commit is contained in:
parent
925d950efb
commit
9367a9fba9
1 changed files with 6 additions and 4 deletions
|
@ -414,12 +414,14 @@ window.onload = function() {
|
||||||
document.onkeydown = function (e) {
|
document.onkeydown = function (e) {
|
||||||
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey)
|
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey)
|
||||||
return;
|
return;
|
||||||
if (e.key == 'ArrowLeft') {
|
if (e.key == 'ArrowLeft')
|
||||||
jumpBack();
|
jumpBack();
|
||||||
}
|
if (e.key == 'ArrowRight')
|
||||||
if (e.key == 'ArrowRight') {
|
|
||||||
jumpForward();
|
jumpForward();
|
||||||
}
|
if (e.key == 'ArrowUp')
|
||||||
|
video_selector.playbackRate = video_selector.playbackRate * 2.0;
|
||||||
|
if (e.key == 'ArrowDown')
|
||||||
|
video_selector.playbackRate = video_selector.playbackRate / 2.0;
|
||||||
};
|
};
|
||||||
|
|
||||||
window.onhashchange = function() {
|
window.onhashchange = function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue