Add swipe-right-to-close preference pane for mobile (JOB-6)#1
Draft
jmansfield wants to merge 1 commit into
Draft
Add swipe-right-to-close preference pane for mobile (JOB-6)#1jmansfield wants to merge 1 commit into
jmansfield wants to merge 1 commit into
Conversation
Implements a slide-out preference pane that can be dismissed by swiping right on touch devices. Features: - Preference pane slides in from the left on button click - Touch gesture handling with directional lock (horizontal vs vertical) - Pane follows finger during swipe with proportional overlay fade - Closes if swiped past 30% threshold, snaps back otherwise - Also closeable via X button, overlay tap, or Escape key - Mobile-responsive with max-width: 85vw - Swipe hint shown only on mobile viewports Resolves: JOB-6 Co-authored-by: James Mansfield <james.mansfield@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a mobile-friendly preference pane that slides in from the left and can be dismissed by swiping right, as requested in JOB-6.
What's included
New exercise folder
22 Swipe preference pane/with three files following the existing project conventions:index.html<aside>) with sample settings (dark mode, notifications, font size, language, auto-save)application.csstransformandtransition.draggingclass disables transitions during active touch for smooth finger-tracking85vwon small screens, swipe hint hidden on desktop (≥769px)application.jstouchstart/touchmove/touchendeventsHow to test
22 Swipe preference pane/index.htmlin a browserLinear Issue: JOB-6