You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6945b77
Browse filesBrowse the repository at this point in the historyBrowse files
i2cjak
authored
Merge pull request #606 from BackplaneWorks/backplane/scroll-valid-range-2
Timeline scrolling: no document-wide non-passive wheel listener; a scroll inside the plan's valid range keeps the plan
field("zero height pill contributes no gap or track change", pill, "total", "104.125")
114
142
C.Check.str("anchor forced into window", Bool.show(V.Window.keep(True{}, False{})), "True")
115
143
C.Check.str("only bottom can follow", Bool.show(V.Follow.allowed(True{}, False{})), "False")
144
+
+mid : J.Json = many.plan("5000", J.Null{})
145
+
+lo : String = valid.at(mid, 0n)
146
+
+hi : String = valid.at(mid, 1n)
147
+
C.Check.str("valid range: low end mounts the same rows", mounted(many.plan(lo, mid)), mounted(mid))
148
+
C.Check.str("valid range: high end mounts the same rows", mounted(many.plan(hi, mid)), mounted(mid))
149
+
C.Check.str("valid range: a pixel below it mounts others", Bool.show(String.eq(mounted(many.plan(V.Px.show(V.Px.sub(V.Px.read(lo), V.Px.int(1n))), mid)), mounted(mid))), "False")
150
+
C.Check.str("valid range: a pixel above it mounts others", Bool.show(String.eq(mounted(many.plan(V.Px.show(V.Px.add(V.Px.read(hi), V.Px.int(1n))), mid)), mounted(mid))), "False")
151
+
C.Check.str("valid range holds the top it was planned at", Bool.show(Bool.and(V.Px.le(V.Px.read(lo), V.Px.read("5000")), V.Px.le(V.Px.read("5000"), V.Px.read(hi)))), "True")
152
+
+bottom : J.Json = many.plan("21921", J.Null{})
153
+
C.Check.str("at the end the range is empty (every scroll plans)", Bool.show(V.Px.le(V.Px.read(valid.at(bottom, 0n)), V.Px.read(valid.at(bottom, 1n)))), "False")
0 commit comments