This repository was archived by the owner on May 13, 2026. It is now read-only.
Improve touch handling to distinguish taps from scrolls#18
Closed
steezeburger wants to merge 1 commit into
Closed
Conversation
Previously, touching a block on mobile immediately triggered editing mode, making scrolling difficult. This adds touch gesture detection that tracks the touch start position and only triggers editing if the touch moved less than 10 pixels (indicating a tap rather than a scroll). Closes #1 https://claude.ai/code/session_013bj2xNiCGAm2yCVtwJUidW
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Improved touch event handling in BlockComponent to properly distinguish between tap gestures and scroll gestures on mobile devices. Previously, touch events were being triggered even during scrolling, causing unintended interactions.
Key Changes
touchStartX,touchStartY) to record the initial touch positionhandleTouchStart()method to capture touch start coordinatesisTapGesture()method to validate if a touch movement is a tap (movement < 10px threshold) or a scroll@touchend.preventhandlers with dedicated methods:handleContentTouchEnd()- triggers edit mode only on valid tapshandleTodoTouchEnd()- toggles todo state only on valid tapsImplementation Details
https://claude.ai/code/session_013bj2xNiCGAm2yCVtwJUidW