Replies: 1 comment 1 reply
|
From that post:
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In some earlier JavaScript builds, text became selectable and copyable automatically. I no longer see that behavior in the builds I tested today, 26 September 2026.
The DOM text blog post describes browser text selection, but also says that mouse drag selection is disabled to preserve the canvas's handling of gestures, while browser search and keyboard selection are supported.
My current minimal example is available at https://routinote.hopto.me/scrolling-test/. I generated a new project with the web Initializr, added only one long
SpanLabel, and compiled it to JavaScript using the Codename One cloud build server, not an offline build. The generated project uses CN1 7.0.273. I have not added selection-related API calls or build hints.Could you clarify:
form.getTextSelection().setEnabled(true)andspanLabel.setTextSelectionEnabled(true)? How do these APIs interact with the new DOM layer?My goal is to let users select and copy text while preserving normal scrolling, buttons and other touch or mouse interactions.
All reactions