File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2449,8 +2449,18 @@ muteButtonElement.style.zIndex = "1000";
2449
2449
muteButtonElement . style . cursor = "pointer" ;
2450
2450
muteButtonElement . style . textShadow =
2451
2451
"0 0 10px #00ff40, 0 0 20px #00ff40, 0 0 40px #00ff40, 0 0 80px #00ff40" ;
2452
+ muteButtonElement . style . userSelect = "none" ; // Prevent text selection
2453
+ muteButtonElement . style . webkitUserSelect = "none" ; // Safari
2454
+ muteButtonElement . style . touchAction = "manipulation" ; // Improve touch responsiveness
2452
2455
muteButtonElement . textContent = isMuted ? "SOUND OFF" : "SOUND ON" ;
2456
+
2453
2457
muteButtonElement . addEventListener ( "click" , toggleMute ) ;
2458
+ muteButtonElement . addEventListener ( "touchstart" , ( e ) => {
2459
+ e . stopPropagation ( ) ; // Prevent game touch handling
2460
+ e . preventDefault ( ) ;
2461
+ toggleMute ( ) ;
2462
+ } , { passive : false } ) ;
2463
+
2454
2464
document . body . appendChild ( muteButtonElement ) ;
2455
2465
2456
2466
// Add UI for LGTM 2025 text
@@ -2648,7 +2658,7 @@ function updateResponsiveUI() {
2648
2658
}
2649
2659
2650
2660
if ( lgtmElement ) {
2651
- lgtmElement . style . bottom = `${ spacing } px` ;
2661
+ lgtmElement . style . bottom = `${ spacing * 0.8 } px` ;
2652
2662
lgtmElement . style . right = `${ spacing } px` ;
2653
2663
}
2654
2664
You can’t perform that action at this time.
0 commit comments