@jsenv/navi 0.29.167 → 0.29.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jsenv_navi.js +231 -109
- package/dist/jsenv_navi.js.map +18 -18
- package/docs/interactions.md +10 -0
- package/docs/popup_open.md +7 -0
- package/package.json +2 -2
package/docs/interactions.md
CHANGED
|
@@ -790,6 +790,16 @@ container above it does not take the gesture:
|
|
|
790
790
|
the browser's menu. Declare `contextmenu` beside it to make the right click do
|
|
791
791
|
the same thing. (A held _finger_ is the system's own context-menu gesture, and
|
|
792
792
|
that one is refused while the wait runs.)
|
|
793
|
+
- **Where the press already means something, text is not selected.** An element
|
|
794
|
+
declaring `longpress` or a swipe, and a drag source standing in a
|
|
795
|
+
`data-drag-on-contact` place, keep their text unselectable: the browser answers
|
|
796
|
+
that same press with a selection of its own — the word under the thumb, blue,
|
|
797
|
+
with handles — and nothing takes it back once the press is over. For every
|
|
798
|
+
pointer, mouse included, which cannot finish a selection begun where the press
|
|
799
|
+
is a gesture. What never answered that press keeps its text: a field, a popover
|
|
800
|
+
or a dialog opened from inside, and anything marked `data-drag-ignore`. A drag
|
|
801
|
+
source taken by long press is not concerned — the grab happens first, and the
|
|
802
|
+
gesture refuses the selection for its own length.
|
|
793
803
|
- **A swipe cannot also be dragged out of the page.** An element declaring a
|
|
794
804
|
swipe gets `draggable={false}` and its `dragstart` refused — a native drag _is_
|
|
795
805
|
press-and-move, and a link or an image is draggable without anyone asking. One
|
package/docs/popup_open.md
CHANGED
|
@@ -396,6 +396,13 @@ an abort — leaves the popup where it is. Same rule a form already follows for
|
|
|
396
396
|
what comes after its send (`data-after-send`, see `resolveAfterSend` in
|
|
397
397
|
commands.js).
|
|
398
398
|
|
|
399
|
+
The action is free to replace that button while it runs — and it usually does:
|
|
400
|
+
what came back is put in the store, the tree re-renders, and the branch the
|
|
401
|
+
button stood in goes with it. The popup closes all the same. What the command
|
|
402
|
+
aims at is read at the press, while the button is still in the document (see
|
|
403
|
+
`resolveNaviCommand` in commands.js); only the running of it waits. The popup
|
|
404
|
+
pressed in is the popup that closes, even when the press is what emptied it.
|
|
405
|
+
|
|
399
406
|
The wait is why closing **from inside** the action still does not close: while
|
|
400
407
|
the action runs, the button that started it is busy, and a busy control is
|
|
401
408
|
exactly what a popup refuses to close over (see the top of this page). The
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/navi",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.169",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Library of components including navigation to create frontend applications",
|
|
6
6
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"prepublishOnly": "npm run build"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@jsenv/dom": "0.17.
|
|
32
|
+
"@jsenv/dom": "0.17.40",
|
|
33
33
|
"@jsenv/humanize": "1.7.8",
|
|
34
34
|
"@jsenv/validity": "0.4.3"
|
|
35
35
|
},
|