Lints some errors and warnings (#76)
This commit is contained in:
parent
2fce1637b4
commit
06e41167d0
22 changed files with 62 additions and 38 deletions
|
@ -88,11 +88,21 @@ export function SwipeAndZoom({
|
|||
}
|
||||
|
||||
const canDir = (d: Dir) => {
|
||||
if (d === Dir.Left) return canSwipeLeft
|
||||
if (d === Dir.Right) return canSwipeRight
|
||||
if (d === Dir.Up) return canSwipeUp
|
||||
if (d === Dir.Down) return canSwipeDown
|
||||
if (d === Dir.Zoom) return zoomEnabled
|
||||
if (d === Dir.Left) {
|
||||
return canSwipeLeft
|
||||
}
|
||||
if (d === Dir.Right) {
|
||||
return canSwipeRight
|
||||
}
|
||||
if (d === Dir.Up) {
|
||||
return canSwipeUp
|
||||
}
|
||||
if (d === Dir.Down) {
|
||||
return canSwipeDown
|
||||
}
|
||||
if (d === Dir.Zoom) {
|
||||
return zoomEnabled
|
||||
}
|
||||
return false
|
||||
}
|
||||
const isHorz = (d: Dir) => d === Dir.Left || d === Dir.Right
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue