Block all pointer interactions during Blobbi overstimulation phase
Add a transparent fullscreen overlay (fixed, inset 0, z-index 99999) that renders only while phase === 'blocked'. This prevents clicks on buttons, links, inputs, feeds, menus, etc. while Blobbi is overwhelmed. The overlay is removed automatically when the blocked phase ends.
This commit is contained in:
@@ -341,6 +341,18 @@ export function BlobbiCompanionLayer() {
|
||||
onItemUse={handleItemUse}
|
||||
isItemOnCooldown={isItemOnCooldown}
|
||||
/>
|
||||
{/* Global click shield while Blobbi is in blocked (overstimulated) phase */}
|
||||
{isOverstimBlocked && (
|
||||
<div
|
||||
aria-hidden
|
||||
style={{
|
||||
position: 'fixed',
|
||||
inset: 0,
|
||||
zIndex: 99999,
|
||||
pointerEvents: 'all',
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user