mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-22 21:51:29 +00:00
swipe to reply
This commit is contained in:
1 parent
e81ec3f864
commit
253f838591
1 file changed
+10
-1
+10
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user