File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ export function isMediaElement(el) {
3737export function preventNavigationTouchEvent ( ev ) {
3838 if ( ev instanceof TouchEvent && ev . cancelable ) {
3939 // console.log(`${ev.type} @ ${ev.touches[0].clientX.toString()} x ${ev.touches[0].clientY.toString()}`, ev.target);
40- if ( ev . type === TouchStartEvent && ( isMediaElement ( ev . target ) || ev . touches [ 0 ] . clientX <= 16 ) ) {
41- if ( window . innerHeight - ev . touches [ 0 ] . clientY > 128 || ev . touches [ 0 ] . clientX <= 16 ) {
40+ if ( ev . type === TouchStartEvent && ( isMediaElement ( ev . target ) || ev . touches [ 0 ] . clientX <= 30 ) ) {
41+ if ( window . innerHeight - ev . touches [ 0 ] . clientY > 128 || ev . touches [ 0 ] . clientX <= 30 ) {
4242 ev . preventDefault ( ) ;
4343 // console.log(`prevented ${ev.type} @ ${ev.touches[0].clientX.toString()} x ${ev.touches[0].clientY.toString()}`);
4444 }
You can’t perform that action at this time.
0 commit comments