Repository navigation
fix(ocr): keep the text sheet at its step, selectable and draggable from the text - #899
Merged
Merged
Conversation
…rom the text - `PageSheetLayout` spread `$$restProps` on the sheet: svelte re-applies all of them on each re-render of the slots, so the sheet went back to its first step after each change. Pass the props explicitly, and let a fling go further with `dragToss`. - remove `makeSelectable` and its timers: read-only text stays selectable in ui-textview. - call `blur()` on done, it also hides the keyboard. Refs #896 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
On Android a text scrolls to its cursor when the sheet gets smaller, so a tap on the text made it jump after a drag. On `dragStart` clear its focus and put the cursor on the first visible line. Refs #896 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.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
PageSheetLayoutspread$$restPropson the sheet and Svelte re-applies all of them when the slots change. It passes the props explicitly now, withdragToss={0.3}so a fling can skip steps.makeSelectableand its timers are removed, Done callsblur()(which also hides the keyboard).dragStartevent of the sheet the text loses its focus and its cursor goes to the first visible line.Refs #896
Depends on (not released yet)
ui-textview:touchevents,isScrollEnabled,blur())Bump the three packages once released, then rebuild natively (
ui-textviewdeclares new native usages).Testing
svelte-check: 0 errors.🤖 Generated with Claude Code