Fix touch interaction on remote control menu.

This commit is contained in:
Jared Goodwin 2019-06-21 19:03:08 -07:00
parent 1344dd9c99
commit eb7fe38a00
5 changed files with 4 additions and 6 deletions

View File

@ -1 +1 @@
2019.06.21.1714
2019.06.21.1840

View File

@ -70,6 +70,7 @@ button[disabled] {
border-radius: 0 3px 3px 0;
pointer-events: all;
cursor: pointer;
z-index: 3;
transition: .5s ease left;
}
@ -92,6 +93,7 @@ button[disabled] {
overflow-y: auto;
text-align: center;
opacity: 0;
z-index: 3;
transition: .5s ease all;
}

View File

@ -56,8 +56,6 @@ export function ApplyInputHandlers(sockets) {
}
});
MenuButton.addEventListener("touchmove", (ev) => {
ev.preventDefault();
isMenuButtonDragging = true;
MenuButton.style.top = `${ev.touches[0].clientY}px`;
});
ChangeScreenButton.addEventListener("click", (ev) => {

File diff suppressed because one or more lines are too long

View File

@ -64,8 +64,6 @@ export function ApplyInputHandlers(sockets: RCBrowserSockets) {
});
MenuButton.addEventListener("touchmove", (ev) => {
ev.preventDefault();
isMenuButtonDragging = true;
MenuButton.style.top = `${ev.touches[0].clientY}px`;
});