Skip to content
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

[Android] Multi touch behavior error #2537

Open
1 of 2 tasks
ptduyit opened this issue Feb 21, 2025 · 0 comments
Open
1 of 2 tasks

[Android] Multi touch behavior error #2537

ptduyit opened this issue Feb 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ptduyit
Copy link

ptduyit commented Feb 21, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

In JavaScript, register the pointerdown event and perform the following actions:

  1. Touch and hold finger 1.
  2. Touch and hold finger 2.
  3. Lift finger 1 off the screen.
  4. Touch finger 1 again anywhere on the screen.

At step 4, when using console.log(event.x, event.y), all touch positions print the x, y coordinates of the finger 2.


Load any multi-touch testing website, for example: https://cps-check.com/multi-touch-test, and perform the same steps.
At step 4, the website does not recognize the touch position.


The same behavior still occurs when using the application https://play.google.com/store/apps/details?id=com.pichillilorenzo.flutter_browser.

Expected Behavior

At step 4, the x, y coordinates should be the touch position of finger 1 instead of finger 2.

Steps with code example to reproduce

Steps with code example to reproduce
import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';

void main() {
  runApp(
    MaterialApp(
      home: Scaffold(
        body: InAppWebView(
          initialUrlRequest: URLRequest(
            url: WebUri("https://cps-check.com/multi-touch-test"),
          ),
        ),
      ),
    ),
  );
}

Stacktrace/Logs

Stacktrace/Logs
<Replace this line by pasting your stacktrace or logs here>

Flutter version

v3.24.3

Operating System, Device-specific and/or Tool

Android 31, 35

Plugin version

v6.2.0-beta.2

Additional information

Screenrecording_20250221_105138.mp4

Self grab

  • I'm ready to work on this issue!
@ptduyit ptduyit added the bug Something isn't working label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant