Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| start [2023/02/09 23:42] – steve.wang | start [2023/02/10 00:06] (current) – steve.wang | ||
|---|---|---|---|
| Line 705: | Line 705: | ||
| if (deviceType!=' | if (deviceType!=' | ||
| window.addEventListener(" | window.addEventListener(" | ||
| - | console.log(' | ||
| if (window.innerWidth< | if (window.innerWidth< | ||
| // | // | ||
| Line 1454: | Line 1453: | ||
| if ( Math.abs( xDiff ) > Math.abs( yDiff ) ) {/*most significant*/ | if ( Math.abs( xDiff ) > Math.abs( yDiff ) ) {/*most significant*/ | ||
| if ( xDiff > 0 && swipeCooldown==false) { | if ( xDiff > 0 && swipeCooldown==false) { | ||
| + | evt.preventDefault() | ||
| console.log(' | console.log(' | ||
| swipeCooldown=true | swipeCooldown=true | ||
| Line 1462: | Line 1462: | ||
| } | } | ||
| else if (swipeCooldown==false) { | else if (swipeCooldown==false) { | ||
| + | evt.preventDefault() | ||
| console.log(' | console.log(' | ||
| swipeCooldown=true | swipeCooldown=true | ||
| Line 1471: | Line 1472: | ||
| } else { | } else { | ||
| if ( yDiff > 0 ) { | if ( yDiff > 0 ) { | ||
| - | console.log(' | ||
| } else { | } else { | ||
| - | console.log(' | ||
| } | } | ||
| } | } | ||