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:
@@ -70,7 +70,6 @@ export function swipeable(node, { thresholdProvider }) {
|
||||
}
|
||||
|
||||
function handleUp(event) {
|
||||
event.preventDefault();
|
||||
removeEndEventListener(window, handleUp)
|
||||
removeMoveEventListener(window, handleMove)
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@ export function tappable(node) {
|
||||
}
|
||||
|
||||
function handleTapend(event) {
|
||||
event.preventDefault();
|
||||
removeFocusoutEventListener(node, handleTapend)
|
||||
|
||||
const touch = event.changedTouches[0]
|
||||
|
||||
Reference in New Issue
Block a user