@zakim24/electron-liquid-glass 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zakim24/electron-liquid-glass",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "macOS glass / vibrancy wrapper for Electron BrowserWindow",
5
5
  "repository": {
6
6
  "type": "git",
@@ -122,6 +122,16 @@ extern "C" int AddGlassEffectView(unsigned char *buffer, bool opaque) {
122
122
 
123
123
  // Ensure autoresize if we created a private glass view too
124
124
  glass.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;
125
+
126
+ // CRITICAL: Allow mouse events to pass through the glass effect to the content below
127
+ // Without this, the glass view intercepts all mouse events and blocks UI interaction
128
+ if ([glass respondsToSelector:@selector(setIgnoresMouseEvents:)]) {
129
+ [(id)glass setIgnoresMouseEvents:YES];
130
+ }
131
+ // Also set on background view if present
132
+ if (backgroundView && [backgroundView respondsToSelector:@selector(setIgnoresMouseEvents:)]) {
133
+ [(id)backgroundView setIgnoresMouseEvents:YES];
134
+ }
125
135
 
126
136
  // Add the glass view (positioned relative to background view if opaque, or below everything if not)
127
137
  if (opaque && backgroundView) {
Binary file