Remove preventDefault from swipeable and tappable.

This was prevent carousel particles that contained clickable items from
working properly on mobile devices.

Removing preventDefault from both locations allows these items to
response properly when clicked. No adverse behavior had been observed.
Tested on a Pixel 2 phone monitored with chrome dev tools.
This commit is contained in:
Cory Parsnipson
2022-06-23 17:12:04 -07:00
parent 67c227995b
commit fc2c0e899a
2 changed files with 0 additions and 2 deletions

View File

@@ -70,7 +70,6 @@ export function swipeable(node, { thresholdProvider }) {
}
function handleUp(event) {
event.preventDefault();
removeEndEventListener(window, handleUp)
removeMoveEventListener(window, handleMove)

View File

@@ -42,7 +42,6 @@ export function tappable(node) {
}
function handleTapend(event) {
event.preventDefault();
removeFocusoutEventListener(node, handleTapend)
const touch = event.changedTouches[0]