@jsenv/navi 0.30.37 → 0.30.38
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/dev/jsenv_navi.js +38 -12
- package/dist/dev/jsenv_navi.js.map +4 -4
- package/dist/jsenv_navi.js +38 -12
- package/dist/jsenv_navi.js.map +4 -4
- package/docs/scroll.md +6 -0
- package/package.json +1 -1
package/docs/scroll.md
CHANGED
|
@@ -756,6 +756,12 @@ browser, at no cost per element. Hand-written in JS the same suppression takes
|
|
|
756
756
|
three handlers — once `mouseenter` has been swallowed, only `mousemove` can
|
|
757
757
|
bring the hover back.
|
|
758
758
|
|
|
759
|
+
End the selector on what it styles, as `.my_row` does here. A rule ending on
|
|
760
|
+
`*` (`[navi-scrolling] *`, or `.my_row:is([navi-scrolling] *)`) gives Chrome
|
|
761
|
+
nothing to narrow to: it restyles every element under the scroller, the whole
|
|
762
|
+
document when the page scrolls, once as each scroll starts and again as it
|
|
763
|
+
stops.
|
|
764
|
+
|
|
759
765
|
The page scroll carries the attribute on `document.scrollingElement`, so an
|
|
760
766
|
ancestor rule covers it too. In JS the same fact reads as `isScrolling()` /
|
|
761
767
|
`isScrolling(element)`, or `scrollActivitySignal` to react to it.
|