Skip to content

Commit

Permalink
🐛 fix(NavigationDrawer): missing 'toucless' on moving and end (#2314)
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem authored Jan 13, 2025
1 parent 4651dc0 commit 2cb097a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/Masa.Blazor.JS/src/components/navigation-drawer/touch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ export function useTouch(
}

function onTouchmove(e: TouchEvent) {
if (state.touchless) return;

const touchX = e.changedTouches[0].clientX;
const touchY = e.changedTouches[0].clientY;

Expand Down Expand Up @@ -156,7 +158,7 @@ export function useTouch(
function onTouchend(e: TouchEvent) {
maybeDragging = false;

if (!isDragging) return;
if (state.touchless || !isDragging) return;

addMovement(e);

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2cb097a

Please sign in to comment.