mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Sometimes I hate coding
This commit is contained in:
parent
f26e76d822
commit
341d5b0ee8
3 changed files with 7 additions and 6 deletions
|
@ -52,10 +52,10 @@ function tabDragStart(event) {
|
|||
|
||||
uploadTab.classList.add("dragging");
|
||||
|
||||
document.addEventListener('touchmove', event => {
|
||||
document.addEventListener('touchmove', moving => {
|
||||
if (uploadTab.classList.contains("dragging")) {
|
||||
if (event.touches[0].clientY - offset >= 0) {
|
||||
uploadTab.dataset.lastY = event.touches[0].clientY;
|
||||
if (moving.touches[0].clientY - offset >= 0) {
|
||||
uploadTab.dataset.lastY = moving.touches[0].clientY;
|
||||
} else {
|
||||
uploadTab.dataset.lastY = offset;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue