Skip to content

Instantly share code, notes, and snippets.

@stephancasas
Last active April 22, 2025 02:22
Show Gist options
  • Save stephancasas/65acdc16528b24d25f20329b364d8c12 to your computer and use it in GitHub Desktop.
Save stephancasas/65acdc16528b24d25f20329b364d8c12 to your computer and use it in GitHub Desktop.
macOS: Ignore `WKWebView` events
//
// WKWebView+UserIgnoreEvents.h
// EventEavesdropper
//
// Created by Stephan Casas on 4/21/25.
//
#import <WebKit/WebKit.h>
@interface WKWebView (UserIgnoreEvents)
- (void) _setIgnoresMouseMoveEvents:(BOOL)flag;
- (void) _setIgnoresNonWheelEvents:(BOOL)flag;
- (void) _setIgnoresAllEvents:(BOOL)flag;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment