git ssb

16+

Dominic / patchbay



Commit 98b8200d7df505ff08e51bde3c8f7421b866c892

Only do intersectionBindingViewport on the scrolling element, fixes filter in /public and new in books

Anders Rune Jensen committed on 5/20/2019, 6:47:52 PM
Parent: cf1df9edd4ee65bb572646c70380d08b9ea312f5

Files changed

app/html/scroller.jschanged
app/html/scroller.jsView
@@ -8,17 +8,19 @@
88
99 function Scroller (opts = {}) {
1010 const { prepend, content = null, append, classList = [], className = '', title = '', scrollIntoView } = opts
1111
12- const contentSection = h('section.content', { title: '' }, content)
12+ const contentSection = h('section.content', {
13+ title: '',
14+ intersectionBindingViewport: { rootMargin: '1000px' } // mutant magic
15+ }, content)
1316
1417 const container = h('Scroller',
1518 {
1619 classList,
1720 className,
1821 title,
1922 style: { 'overflow-y': 'scroll', 'overflow-x': 'auto' },
20- intersectionBindingViewport: { rootMargin: '1000px' } // mutant magic
2123 // TODO (watch for breaks e.g. stuff stops updating after scrolling)
2224 },
2325 [
2426 prepend ? h('section.top', prepend) : null,

Built with git-ssb-web