From 2f230173fabfe820d8d9e2b76d0eee4f24e64b9c Mon Sep 17 00:00:00 2001 From: Grace Kind Date: Fri, 24 Jul 2026 22:51:51 -0500 Subject: [PATCH] Update toast dismiss sensitivity --- package.json | 2 +- src/js/toasts.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 84807a84..5878720f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "impro", - "version": "0.18.78", + "version": "0.18.79", "type": "module", "scripts": { "start": "rm -rf \"${BUILD_DIR:-build}\" && NODE_ENV=development eleventy --serve", diff --git a/src/js/toasts.js b/src/js/toasts.js index bf01160c..2e1132e3 100644 --- a/src/js/toasts.js +++ b/src/js/toasts.js @@ -84,6 +84,8 @@ function mountToast(toast, { timeout = 3000, onDismiss = () => {} } = {}) { enableDragToDismiss(toast, { direction: "up", allowOppositeTranslate: true, + dismissThresholdPx: 25, + flickVelocity: 0.2, onDismiss: dismiss, onDragStart: pauseAutoDismiss, onDragEnd: ({ dismissed }) => { -- 2.51.2