bunjilplace2021 / realness

0 stars 0 forks source link

Disable touch swipe gestures on mobile & fix wrong width on ios WebKit browser #32

Closed wezzahd closed 3 years ago

wezzahd commented 3 years ago

Swipe gesture triggers mouse down event and mic recording. Webkit browser (Chrome & PWA) reports wrong window dimensions on window resize/orientation.

wezzahd commented 3 years ago

@burstMembrane I noticed that swipes on touch devices register as mouse down events...on iOS anyway.
It only causes an issue when swiping up or down on iOS to access the system notifications or control centre as it will trigger the mic recording event if the sound engine is running. Is that the same behaviour on Android?

I think a possible fix might be to ignore the event if the mouse/touch position is 10px or less from either the top or bottom of the screen. What do you think?