No Branch/Tag Specified
2022-07-08-MUA-Update
a258wang-events-2022-09-28
add-name-to-web-committe
amy-add-alt-tab-f22
amy-add-librarian-f22
amy-events-august-2022
amy-events-karaoke
amy-fix-vp-f22
amy-image-optimization-quick-fix-experiment
amy-news-2022-09-14
amy-random-shapes
amy-update-annie-headshot-f22
amy-update-community-reps
amy-update-internship-repo-f22
annies/add-circles-event
anniesun/add-myself-to-webstite
anniesun/update-blurbs
b72zhou-past-exec
bonnie-team-member-card
darren/add-class-profile-news
darren/add-myself-to-website
darren/add-news
darren/fix-dead-link
fix-oc-burger
j285he-add-news-09-07
j285he-ldap-test-example
jan-2023-constitution-changes
ldap-exec-test
main
neil-members
news-2022-09-08
news-2022-09-10
renovate/date-fns-tz-2.x
renovate/eslint-8.x
renovate/eslint-plugin-prettier-4.x
renovate/eslint-plugin-react-7.x
renovate/fs-extra-11.x
renovate/ldapts-4.x
renovate/mdx-js-loader-2.x
renovate/mdx-js-react-2.x
renovate/next-11.x
renovate/next-13.x
renovate/next-mdx-11.x
renovate/next-mdx-13.x
renovate/next-mdx-remote-3.x
renovate/node-18.x
renovate/node-19.x
renovate/npm-9.x
renovate/postcss-preset-env-8.x
renovate/react-18.x
renovate/react-dom-18.x
renovate/remark-14.x
renovate/remark-html-15.x
renovate/squoosh-lib-0.x
renovate/typescript-4.x
renovate/typescript-5.x
renovate/typescript-eslint-eslint-plugin-5.x
renovate/typescript-eslint-parser-5.x
richardshuai/karaoke
shahanneda-news-11jan2022
shahanneda/add-alt-tab-news
shahanneda/add-bot
shahanneda/add-code-party-1
shahanneda/add-code-party-23
shahanneda/add-event
shahanneda/add-events
shahanneda/add-myself
shahanneda/alt-tab-and-cp
shahanneda/fix-build-image-script
shahanneda/fix-name-parts
shahanneda/optimze-image-script
shahanneda/update-exec-blurbs
shahanneda/update-project-program
shahanneda/update-team
support-multiple-news-homepage
unix101-1
update-events
w23-update-team
warning-header
Labels
Apply labels
Clear labels
a11y
Backlog
Blocked
Bug
Content
Dependencies
Design
Feature Request
Good First Issue
In Progress
Performance
Priority - High
Priority - Low
Priority - Medium
Untriaged
No Label
a11y
Backlog
Blocked
Bug
Content
Dependencies
Design
Feature Request
Good First Issue
In Progress
Performance
Priority - High
Priority - Low
Priority - Medium
Untriaged
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
No dependencies set.
Reference: www/www-new#83
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
A React Hook for detecting swipe gestures on mobile devices. Used in the mobile navbar, and potentially anywhere else that needs it.
Notes from Amy:
Currently, when you open the mobile navbar menu, the only way to close it again is to click on the gray background area (or to click on one of the links). However, on really small screens (eg. the Galaxy Fold), the menu is actually wider than the screen, so you can't see the gray background at all and thus you can't close the menu (unless you click on one of the links). Also, we realized that swiping to close the menu feels more natural than just clicking. Furthermore, if we ever want to use this swiping detection behaviour in other parts of the site, then having this hook will make that pretty easy too.
Ideally, we not only want to be able to detect when the screen is being swiped, but also what direction the user is swiping in - in the case of the navbar, we'd only want to close the menu when the user is swiping to the right, and not when they're swiping up or down.