Skip to content

Commit

Permalink
fix: x,y位置修正
Browse files Browse the repository at this point in the history
  • Loading branch information
lareinayanyu committed Jan 13, 2025
1 parent d80a546 commit fd34c8f
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,16 +356,13 @@ const _MovableView = forwardRef<HandlerRef<View, MovableViewProps>, MovableViewP
})
Object.assign(e, {
touches: type === 'end' ? [] : e.allTouches,
detail: {
x: e.changedTouches[0].absoluteX,
y: e.changedTouches[0].absoluteY - navigationY
},
currentTarget: {
id: props.id || '',
dataset: collectDataset(props),
offsetLeft: 0,
offsetTop: 0
}
},
detail: {}
})
}, [])

Expand Down

0 comments on commit fd34c8f

Please sign in to comment.