Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

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

hud: extend corner-label hit region up to screen top

Starts the tap area at y=0 instead of at the label's offset, so taps on
the very top edge of the screen still trigger the corner label.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

+6 -5
+6 -5
system/public/aesthetic.computer/lib/disk.mjs
··· 14597 14597 // Update button position to match label position (with slide offset) 14598 14598 const finalX = currentHUDOffset.x + hudAnimationState.slideOffset.x - currentHUDLeftPad; 14599 14599 const finalY = currentHUDOffset.y + hudAnimationState.slideOffset.y; 14600 - // Hit region spans the entire top strip so taps anywhere near the corner label register, 14601 - // while using just the actual text height (not the padded buffer) so it isn't too tall. 14600 + // Hit region spans the entire top strip from y=0 so taps at the very top edge 14601 + // register, and extends down through the text's actual height plus small padding. 14602 14602 const screenW = $api.screen?.width || cachedAPI?.screen?.width || bufferW || 1; 14603 14603 const textOnlyHeight = Math.max( 14604 14604 1, ··· 14610 14610 1, 14611 14611 ), 14612 14612 ); 14613 - const hitboxHeight = textOnlyHeight + Math.max(2, Math.round(hudBlockHeight * 0.2)); 14613 + const descenderPad = Math.max(2, Math.round(hudBlockHeight * 0.2)); 14614 + const finalYClamped = Math.max(0, Math.round(finalY)); 14614 14615 currentHUDButton.box.x = 0; 14615 - currentHUDButton.box.y = Math.max(0, Math.round(finalY)); 14616 + currentHUDButton.box.y = 0; 14616 14617 currentHUDButton.box.w = Math.max(1, Math.round(screenW)); 14617 - currentHUDButton.box.h = Math.max(1, hitboxHeight); 14618 + currentHUDButton.box.h = Math.max(1, finalYClamped + textOnlyHeight + descenderPad); 14618 14619 14619 14620 // Mark HUD button to bypass the global HUD active check (it checks itself) 14620 14621 currentHUDButton.noEdgeDetection = true;