fleaflet / flutter_map

A versatile mapping package for Flutter. Simple and easy to learn, yet completely customizable and configurable, it's the best choice for mapping in your Flutter app.

Home Page:https://pub.dev/packages/flutter_map

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] MapEventTap - Delay between touch and event

QuentinSc opened this issue · comments

What is the bug?

There is a noticable delay between touch the map and the MapEventTap triggering.
This is not the case with MapEventMove which is instantaneous

How can we reproduce it?

  1. Listen to events
    mapController.mapEventStream.listen((event) {...
  2. Touch the map

Do you have a potential solution?

No response

Platforms

Android 13,14 real devices and simulator

Severity

Minimum: Allows normal functioning

Hey @QuentinSc,
This is intentional to allow the double tap handler to determine whether it was a double tap or not. Depending on your version, you may be able to workaround the issue by disabling double tap zoom: https://docs.fleaflet.dev/usage/programmatic-control/listen-to-events#catching-specific-events.