Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Oct 26, 2022
1 parent 1639646 commit 89be00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useScrollLock/index.ts
Expand Up @@ -7,7 +7,7 @@ import { useEventListener } from '../useEventListener'
function preventDefault(rawEvent: TouchEvent, ele: Element): boolean {
const e = rawEvent || window.event

// Do not prevent if the event is fired from a child (otherwise iOS implementation will not work)
// Do not prevent if the event is fired from a child.
if (ele !== e.target)
return false

Expand Down

0 comments on commit 89be00a

Please sign in to comment.