search for standard sites pub-search.waow.tech
search zig blog atproto
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: use view.zoom in findNearestPub — zoom was undefined in closure scope

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

zzstoatzz 872433e8 e00ffded

+2 -1
+2 -1
site/atlas.js
··· 783 783 function findNearestPub(sx, sy) { 784 784 if (!pubData || pubData.length === 0) return -1; 785 785 cacheTransform(); 786 + var z = view.zoom; 786 787 for (var i = 0; i < pubData.length; i++) { 787 788 var pub = pubData[i]; 788 - var pr = Math.min(40, Math.sqrt(pub.count) * zoom * 0.5); 789 + var pr = Math.min(40, Math.sqrt(pub.count) * z * 0.5); 789 790 if (pr < 4) continue; 790 791 var psx = cx + pub.cx * scale, psy = cy + pub.cy * scale; 791 792 var dx = sx - psx, dy = sy - psy;