Merge branch 'master' into feat/db

This commit is contained in:
Gabriel Horner
2023-11-09 11:30:15 -05:00
18 changed files with 851 additions and 738 deletions

View File

@@ -147,7 +147,8 @@
^js cnt-offset (.getBoundingClientRect page-cnt)]
(when (seq rge-rects)
(let [rects (for [rect rge-rects]
(let [rects (for [rect rge-rects
:when (and rect (not (zero? (.-width rect))) (not (zero? (.-height rect))))]
{:top (- (+ (.-top rect) (.-scrollTop page-cnt)) (.-top cnt-offset))
:left (- (+ (.-left rect) (.-scrollLeft page-cnt)) (.-left cnt-offset))
:width (.-width rect)