Repository: flutter
Issue: [flutter_webview] long tap to stop the scroll fling does not work on Android
Labels: platform-android,p: webview,package,has reproducible steps,P2,platform-views: vd,found in release: 2.2,found in release: 2.5,team-android,triaged-android

## Steps to Reproduce


<details>
  <summary>Code</summary>

```dart
import 'dart:convert';

import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return WebView(
        initialUrl: Uri.dataFromString(_html,
                mimeType: 'text/html', encoding: Encoding.getByName("utf-8"))
            .toString());
  }
}


const _loremIpsum = """<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque tristique pellentesque orci et egestas. Nam sed diam tristique, dapibus erat et, imperdiet purus. Aliquam auctor mauris nec erat pulvinar, vitae pretium justo ultricies. Aliquam sollicitudin quis est et laoreet. Sed tempus, erat ac pretium consequat, purus urna condimentum orci, eget pellentesque risus quam non metus. Sed luctus sollicitudin cursus. Pellentesque rhoncus quis diam nec accumsan. Maecenas nec enim nunc. Curabitur dui tortor, tristique nec nisi sit amet, consectetur bibendum lacus. Etiam sit amet leo tempor, sodales neque eget, fringilla est. Aenean luctus ipsum vel mi malesuada, pulvinar condimentum est egestas. Pellentesque malesuada nibh tortor, vel rutrum magna iaculis eget. Donec sapien erat, pretium ut odio in, venenatis fringilla odio. Donec a varius lectus, at efficitur nibh. Sed faucibus hendrerit velit sit amet vulputate.

Maecenas ultrices at velit at accumsan. Morbi gravida eu orci vitae maximus. In pellentesque suscipit libero, ut convallis lorem aliquet aliquam. Sed ut nulla euismod, euismod mauris nec, tempus erat. Donec aliquam magna sed tellus varius, et molestie eros sodales. Duis pulvinar tempor tortor vel ultricies. Suspendisse semper orci in nisi iaculis efficitur. In tristique, dolor eu faucibus laoreet, sapien ex commodo dui, ac auctor lacus erat a sem.

Vivamus varius erat nec tellus commodo lobortis. Maecenas egestas ornare purus vitae maximus. Proin elementum lectus placerat, faucibus nulla at, pellentesque orci. Proin id ornare nulla. Cras interdum finibus maximus. Phasellus ante nulla, scelerisque id sagittis non, varius in ipsum. Mauris rhoncus mi vitae porttitor pharetra. Cras eu scelerisque purus. Aliquam eu sollicitudin tellus. Nullam aliquam felis tortor, nec iaculis nisl pellentesque ac.

Sed vitae elit est. Praesent non consectetur ex, vitae tempus nunc. Integer sed eros eu lectus dictum dapibus. Ut a orci non risus fringilla auctor in sed nibh. Ut massa tortor, sodales vitae arcu ut, sagittis ullamcorper purus. Nunc tellus elit, placerat et tincidunt et, pulvinar eu dolor. Nulla et risus non purus auctor dapibus in et lectus. Phasellus a tincidunt ex, eu sodales diam. Mauris laoreet convallis quam ac dapibus. Sed scelerisque nunc vel odio tristique congue. Cras tempus sem sed quam ornare porta.

Integer cursus, mi sit amet euismod euismod, nulla nisi auctor sem, sit amet tempor neque nunc at ex. Quisque efficitur pellentesque dolor, at commodo nunc pharetra id. Integer id lectus tristique, mattis velit a, accumsan neque. Integer eu diam sed quam ultricies accumsan sed ac risus. Curabitur ut massa erat. Nullam ullamcorper nec mauris et fermentum. Suspendisse malesuada ipsum in tempus facilisis. Cras orci enim, auctor sed tristique a, lacinia ac eros. In in pellentesque odio. Donec vitae neque in neque auctor maximus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque tristique enim eu dui ultrices facilisis. Pellentesque diam nunc, accumsan vitae scelerisque non, consectetur eget purus.
</p>""";

const _html = """
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
$_loremIpsum
$_loremIpsum
$_loremIpsum
$_loremIpsum
$_loremIpsum

</body>
</html>""";

```
</details>

Dependencies:

```yaml
dependencies:
  flutter:
    sdk: flutter
  webview_flutter: 1.0.7
```

1. Run the code an an Android device
2. Fling the screen downwards
3. While the webview is flinging and scrolling down, long-tap the screen to stop the scroll
4. Notice how the webview continues to scroll

**Expected results:** 

The Webview should stop scrolling when the user taps it on Android, as it does on iOS.

**Actual results:** <!-- what did you see? -->

The Webview ignores the tap.

I found the issue in the flutter_webview plugin, it's this line:
https://github.com/flutter/plugins/blob/2b2ca6687e49e5e1067a11939fc78f2013c6fbd4/packages/webview_flutter/lib/src/webview_android.dart#L38 

```dart
return GestureDetector(
      // We prevent text selection by intercepting the long press event.
      // This is a temporary stop gap due to issues with text selection on Android:
      // https://github.com/flutter/flutter/issues/24585 - the text selection
      // dialog is not responding to touch events.
      // https://github.com/flutter/flutter/issues/24584 - the text selection
      // handles are not showing.
      // TODO(amirh): remove this when the issues above are fixed.
      onLongPress: () {},

```

I believe the linked issues #24585 #24584 are fixed already when using hybrid composition, can we disable this workaround now? 
I received negative feedback from users due to the fling-issue.

I removed this workaround [here](https://github.com/knaeckeKami/plugins/commit/18eaa583732672ed69a02209db17f8e6b9096ab3), and found that it works fine and tests, but I'm not sure if this has any other implications.

If not, I'm happy to open a PR on that.

(Flutter versions/Doctor are irrelevant here as it's just dependent on webview_flutter)