-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onLongPressHitTestResult bug #340
Comments
@Karatla I will investigate about it. |
thank you |
To achieve that, you can use now: var requestFocusNodeHrefResult = = await inAppWebViewController.requestFocusNodeHref();
print(requestFocusNodeHrefResult.url);
print(requestFocusNodeHrefResult.title); inside the |
first , thanks for your amazing webview plugin
and i am glad you keep to update this plugin
Flutter version: 1.17
Plugin version: 3.1.0
Current behavior: use onLongPressHitTestResult function
Steps to reproduce
InAppWebView(
initialOptions: InAppWebViewGroupOptions(
crossPlatform: InAppWebViewOptions(),
),
initialUrl: url,
onLongPressHitTestResult: (InAppWebViewController inAppWebViewController,LongPressHitTestResult longPressHitTestResult){
print("longPressHitTestResult: ${longPressHitTestResult.extra}");
print("longPressHitTestResult: ${longPressHitTestResult.type}");
showModalBottomSheet(context: context, builder: (BuildContext context){
return Container(
height: 500,
child: Center(
child: Text("${longPressHitTestResult.extra}\n\n${longPressHitTestResult.type},style: TextStyle(fontSize: 10),),
),
);
});
},
)
Images
when i use long press , the longPressHitTestResult.type always return SRC_IMAGE_ANCHOR_TYPE which means always return an image url not website url
In my app like this:
but it should be like this :
In ios onLongPressHitTestResult return ios way like below:
i can not controll
The text was updated successfully, but these errors were encountered: