swipe to reply

This commit is contained in:
MathMan05 committed 2026-03-18 22:47:08 -05:00
1 parent e81ec3f864
commit 253f838591
1 file changed
+10 -1
+10 -1
View File
@@ -498,16 +498,22 @@ class Message extends SnowFlake {
this,
undefined,
(x) => {
//console.log(x,y);
//console.log(x);
if (x < -20) {
obj.style.translate = x + 20 + "px 0px";
} else obj.style.translate = 0 + "px";
if (!drag && x < 20) {
return;
}
drag = true;
this.channel.moveForDrag(Math.max(x, 0));
},
(x, y) => {
drag = false;
console.log(x, y);
obj.style.translate = 0 + "px";
this.channel.moveForDrag(-1);
if (x > 60) {
console.log("In here?");
@@ -515,6 +521,9 @@ class Message extends SnowFlake {
toggle.checked = false;
console.log(toggle);
}
if (x < -40) {
this.channel.setReplying(this);
}
},
);
this.div = obj;