pichillilorenzo / flutter_inappwebview

A Flutter plugin that allows you to add an inline webview, to use a headless webview, and to open an in-app browser window.
https://inappwebview.dev
Apache License 2.0
3.02k stars 1.34k forks source link

Gesture Handling Bug #1035

Open krishnaprasadgandrath-nooor opened 2 years ago

krishnaprasadgandrath-nooor commented 2 years ago

Environment

Technology Version
Flutter version
Plugin version
Android version
iOS version
Xcode version

Device information:

Description

I am Using a plugin for my project which internally uses InAppWebView and I am unable to restrict gesture handling for the webview. Even when InAppWebView is wrapped inside the IgnorePointer or AbsorbPointer, still the web view is reacting to Clicks and Gestures. Expected behavior: When wrapped the webview inside the widgets like IgnorePointer and Absorbpointer or when the InAppWebview is not in focus then it shouldnt react to user inputs like clicks and taps. Current behavior:

Steps to reproduce

Create a Webview Then Overlay a dialog/ any widget above the webview. When we tap on the overlay widget the webview also reacts to those taps.

  1. This
  2. Than that
  3. Then

Images

ezgif-6-d90db8875a37

Stacktrace/Logcat

github-actions[bot] commented 2 years ago

👋 @krishnaprasadgandrath-nooor

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

krishnaprasadgandrath-nooor commented 2 years ago

Environment

Technology Version Flutter version
Plugin version
Android version
iOS version
Xcode version Device information:

Description

I am Using a plugin for my project which internally uses InAppWebView and I am unable to restrict gesture handling for the webview. Even when InAppWebView is wrapped inside the IgnorePointer or AbsorbPointer, still the web view is reacting to Clicks and Gestures. Expected behavior: When wrapped the webview inside the widgets like IgnorePointer and Absorbpointer or when the InAppWebview is not in focus then it shouldnt react to user inputs like clicks and taps. Current behavior:

Steps to reproduce

Create a Webview Then Overlay a dialog/ any widget above the webview. When we tap on the overlay widget the webview also reacts to those taps.

  1. This
  2. Than that
  3. Then

Images

ezgif-6-d90db8875a37

Stacktrace/Logcat

Watch the Youtube Player which is a web view reacting in the background which is unintended.

elertan commented 2 years ago

This issue is still present, it also occurs when trying to wrap the web view within an AbsorbPointer.

Justus-M commented 2 years ago

Any progress on this? I am having the same issue with IgnorePointer, and AbsorbPointer

krishnaprasadgandrath-nooor commented 2 years ago

If you wrap it with pointer interceptor then it should work fine.

On Fri, 11 Mar, 2022, 3:47 pm Justus, @.***> wrote:

Any progress on this? I am having the same issue with IgnorePointer, and AbsorbPointer

— Reply to this email directly, view it on GitHub https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1064971530, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

Justus-M commented 2 years ago

If you wrap it with pointer interceptor then it should work fine. On Fri, 11 Mar, 2022, 3:47 pm Justus, @.> wrote: Any progress on this? I am having the same issue with IgnorePointer, and AbsorbPointer — Reply to this email directly, view it on GitHub <#1035 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.>

According to the docs, Pointer interceptor does nothing on mobile, only on web

I'll give it a try anyway

krishnaprasadgandrath-nooor commented 2 years ago

Exactly,when we directly/ or indirectly use web view it will be rendered over flutter view and wrapping it with pointer interceptor will solve the problem. In my case the plugin that I've used in side a popup was using webview internally hence using pointer interceptor solved it.

On Sat, 12 Mar, 2022, 8:02 pm Justus, @.***> wrote:

If you wrap it with pointer interceptor then it should work fine. … <#m-4489275963929558306> On Fri, 11 Mar, 2022, 3:47 pm Justus, @.> wrote: Any progress on this? I am having the same issue with IgnorePointer, and AbsorbPointer — Reply to this email directly, view it on GitHub <#1035 (comment) https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1064971530>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.>

According to the docs, Pointer interceptor does nothing on mobile, only on web

— Reply to this email directly, view it on GitHub https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1065893348, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

Justus-M commented 2 years ago

Exactly,when we directly/ or indirectly use web view it will be rendered over flutter view and wrapping it with pointer interceptor will solve the problem. In my case the plugin that I've used in side a popup was using webview internally hence using pointer interceptor solved it. On Sat, 12 Mar, 2022, 8:02 pm Justus, @.> wrote: If you wrap it with pointer interceptor then it should work fine. … <#m-4489275963929558306> On Fri, 11 Mar, 2022, 3:47 pm Justus, @.> wrote: Any progress on this? I am having the same issue with IgnorePointer, and AbsorbPointer — Reply to this email directly, view it on GitHub <#1035 (comment) <#1035 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.> According to the docs, Pointer interceptor does nothing on mobile, only on web — Reply to this email directly, view it on GitHub <#1035 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.>

I'm using InAppWebView, and wrapping it in PointerInterceptor does nothing

krishnaprasadgandrath-nooor commented 2 years ago

Can you send your code snippet?

On Sat, 12 Mar, 2022, 8:29 pm Justus, @.***> wrote:

Exactly,when we directly/ or indirectly use web view it will be rendered over flutter view and wrapping it with pointer interceptor will solve the problem. In my case the plugin that I've used in side a popup was using webview internally hence using pointer interceptor solved it. … <#m2849029844880802670> On Sat, 12 Mar, 2022, 8:02 pm Justus, @.*> wrote: If you wrap it with pointer interceptor then it should work fine. … <#m-4489275963929558306> On Fri, 11 Mar, 2022, 3:47 pm Justus, @.> wrote: Any progress on this? I am having the same issue with IgnorePointer, and AbsorbPointer — Reply to this email directly, view it on GitHub <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035 (comment) <#1035 (comment) https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1064971530>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.> According to the docs, Pointer interceptor does nothing on mobile, only on web — Reply to this email directly, view it on GitHub <#1035 (comment) https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1065893348>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

I'm using InAppWebView, and wrapping it in PointerInterceptor does nothing

— Reply to this email directly, view it on GitHub https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1065897514, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY6WXRK4HAF7LK2ZBB3U7SWLJANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

Justus-M commented 2 years ago

Can you send your code snippet?


import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';

class InAppWebViewBug extends StatelessWidget {
  const InAppWebViewBug({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: IgnorePointer(
            child: InAppWebView(
                initialUrlRequest: URLRequest(
      url: Uri.parse(
        'https://www.google.com/maps/',
      ),
    ))));
  }
}
krishnaprasadgandrath-nooor commented 2 years ago

Have you tried removing ignore pointer and replacing it with pointer interceptor

On Sat, 12 Mar, 2022, 9:43 pm Justus, @.***> wrote:

Can you send your code snippet? … <#m6298552560418420957> On Sat, 12 Mar, 2022, 8:29 pm Justus, @.> wrote: Exactly,when we directly/ or indirectly use web view it will be rendered over flutter view and wrapping it with pointer interceptor will solve the problem. In my case the plugin that I've used in side a popup was using webview internally hence using pointer interceptor solved it. … <#m2849029844880802670> On Sat, 12 Mar, 2022, 8:02 pm Justus, @.> wrote: If you wrap it with pointer interceptor then it should work fine. … <#m-4489275963929558306> On Fri, 11 Mar, 2022, 3:47 pm Justus, @.> wrote: Any progress on this? I am having the same issue with IgnorePointer, and AbsorbPointer — Reply to this email directly, view it on GitHub <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035 <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035> (comment) <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035 (comment) <#1035 (comment) https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1064971530>>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.> According to the docs, Pointer interceptor does nothing on mobile, only on web — Reply to this email directly, view it on GitHub <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035 (comment) <#1035 (comment) https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1065893348>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.> I'm using InAppWebView, and wrapping it in PointerInterceptor does nothing — Reply to this email directly, view it on GitHub <#1035 (comment) https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1065897514>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY6WXRK4HAF7LK2ZBB3U7SWLJANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY6WXRK4HAF7LK2ZBB3U7SWLJANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.>

` import 'package:flutter/material.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';

class InAppWebViewBug extends StatelessWidget { const InAppWebViewBug({Key? key}) : super(key: key);

@OverRide https://github.com/OverRide Widget build(BuildContext context) { return Scaffold( body: IgnorePointer( child: InAppWebView( initialUrlRequest: URLRequest( url: Uri.parse( 'https://www.google.com/maps/', ), )))); } } `

— Reply to this email directly, view it on GitHub https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1065910297, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY6BLPMLRFKCEOU6PPLU7S7EFANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

Justus-M commented 2 years ago

Yes, as mentioned this does nothing

krishnaprasadgandrath-nooor commented 2 years ago

Okay I will check and let you know, I don't have my laptop with me.

On Sat, 12 Mar, 2022, 9:46 pm Justus, @.***> wrote:

Have you tried removing ignore pointer and replacing it with pointer interceptor … <#m413183027352332464> On Sat, 12 Mar, 2022, 9:43 pm Justus, @.*> wrote: Can you send your code snippet? … <#m6298552560418420957> On Sat, 12 Mar, 2022, 8:29 pm Justus, @.> wrote: Exactly,when we directly/ or indirectly use web view it will be rendered over flutter view and wrapping it with pointer interceptor will solve the problem. In my case the plugin that I've used in side a popup was using webview internally hence using pointer interceptor solved it. … <#m2849029844880802670> On Sat, 12 Mar, 2022, 8:02 pm Justus, @.> wrote: If you wrap it with pointer interceptor then it should work fine. … <#m-4489275963929558306> On Fri, 11 Mar, 2022, 3:47 pm Justus, @.> wrote: Any progress on this? I am having the same issue with IgnorePointer, and AbsorbPointer — Reply to this email directly, view it on GitHub <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035 <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035> <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035 <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035>> (comment) <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035 <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035> (comment) <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035 (comment) <#1035 (comment) https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1064971530>>>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY7CVJGBT27ELRTJGWDU7MMRXANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.> According to the docs, Pointer interceptor does nothing on mobile, only on web — Reply to this email directly, view it on GitHub <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035 <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035> (comment) <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035 (comment) <#1035 (comment) https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1065893348>>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY5K6LZ4AGDKY2NERYTU7STG3ANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.> I'm using InAppWebView, and wrapping it in PointerInterceptor does nothing — Reply to this email directly, view it on GitHub <#1035 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035 (comment) <#1035 (comment) https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1065897514>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY6WXRK4HAF7LK2ZBB3U7SWLJANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY6WXRK4HAF7LK2ZBB3U7SWLJANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.> import 'package:flutter/material.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart'; class InAppWebViewBug extends StatelessWidget { const InAppWebViewBug({Key? key}) : super(key: key); @OverRide https://github.com/OverRide <https://github.com/OverRide> Widget build(BuildContext context) { return Scaffold( body: IgnorePointer( child: InAppWebView( initialUrlRequest: URLRequest( url: Uri.parse( 'https://www.google.com/maps/ https://www.google.com/maps/', ), )))); } } — Reply to this email directly, view it on GitHub <#1035 (comment) https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1065910297>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY6BLPMLRFKCEOU6PPLU7S7EFANCNFSM5II4IYVQ https://github.com/notifications/unsubscribe-auth/AWNNSY6BLPMLRFKCEOU6PPLU7S7EFANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.*>

Yes, as mentioned this does nothing

— Reply to this email directly, view it on GitHub https://github.com/pichillilorenzo/flutter_inappwebview/issues/1035#issuecomment-1065910877, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNNSY3NFKNVP5XYTCQKI7TU7S7PFANCNFSM5II4IYVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

Justus-M commented 2 years ago

Okay I will check and let you know, I don't have my laptop with me.

Thanks!

Justus-M commented 2 years ago

@krishnaprasadgandrath-nooor any progress?

mdeimert commented 1 year ago

This plugin has helped me resolve the same issue - https://pub.dev/packages/pointer_interceptor

lukecastronuevo commented 1 month ago

For anybody who's encountering this issue right now. Use this package: pointer_interceptor

Wrap the buttons inside your Dialogs with PointerInterceptor instead and not the InAppWebView widget.

ruslan-rudenko-solid commented 3 weeks ago

For anybody who's encountering this issue right now. Use this package: pointer_interceptor

Wrap the buttons inside your Dialogs with PointerInterceptor instead and not the InAppWebView widget.

This doesn't work on android