Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ - (void)webView:(WKWebView *)webView didStartProvisionalNavigation:(WKNavigation
webView:webView
URL:webView.URL.absoluteString
completion:^(FlutterError *error) {
NSAssert(!error, @"%@", error);

}];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ - (NSString *)lookupKeyForAsset:(NSString *)asset {
@end

@implementation FWFWebView
#if TARGET_OS_OSX
- (void)scrollWheel:(NSEvent *)event {
[[self nextResponder] scrollWheel:event];
}
#endif


- (instancetype)initWithFrame:(CGRect)frame
configuration:(nonnull WKWebViewConfiguration *)configuration
binaryMessenger:(id<FlutterBinaryMessenger>)binaryMessenger
Expand All @@ -27,6 +34,10 @@ - (instancetype)initWithFrame:(CGRect)frame
self.scrollView.automaticallyAdjustsScrollIndicatorInsets = NO;
}
#endif

#if TARGET_OS_OSX
[self setValue:[NSNumber numberWithBool:NO] forKey:@"drawsBackground"];
#endif
}
return self;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ class WKWebViewIOS extends WKWebView implements UIView {

/// The macOS version of a WKWebView.
class WKWebViewMacOS extends WKWebView {
/// Constructs a new iOS WKWebView; see [WKWebView] for details.
/// Constructs a new macOS WKWebView; see [WKWebView] for details.
WKWebViewMacOS(
super.configuration, {
super.observeValue,
Expand Down
Loading