mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-04 22:40:29 +03:00
bump the reply threshold
This commit is contained in:
parent
566b245254
commit
622521ca0a
1 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ export function DraggableMessage({
|
||||||
const isMobile = screenSize === ScreenSize.Mobile;
|
const isMobile = screenSize === ScreenSize.Mobile;
|
||||||
|
|
||||||
const canEdit = mx.getUserId() === event.getSender();
|
const canEdit = mx.getUserId() === event.getSender();
|
||||||
const REPLY_THRESHOLD = 30;
|
const REPLY_THRESHOLD = 50;
|
||||||
const EDIT_THRESHOLD = canEdit ? 180 : Infinity;
|
const EDIT_THRESHOLD = canEdit ? 180 : Infinity;
|
||||||
|
|
||||||
const [isEditVisible, setEditVisible] = useState(false);
|
const [isEditVisible, setEditVisible] = useState(false);
|
||||||
|
|
@ -55,7 +55,7 @@ export function DraggableMessage({
|
||||||
let newReplyOpacity = 0;
|
let newReplyOpacity = 0;
|
||||||
let newScale = 1.0;
|
let newScale = 1.0;
|
||||||
|
|
||||||
if (canEdit && (distance < REPLY_THRESHOLD || distance >= EDIT_THRESHOLD)) {
|
if (canEdit && (distance <= REPLY_THRESHOLD || distance >= EDIT_THRESHOLD)) {
|
||||||
newReplyOpacity = 0;
|
newReplyOpacity = 0;
|
||||||
if (down && distance > EDIT_THRESHOLD) {
|
if (down && distance > EDIT_THRESHOLD) {
|
||||||
newScale = 1.1;
|
newScale = 1.1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue