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

[Bug]: Map touches are delayed #3471

Closed
objectiveSee opened this issue May 3, 2024 · 1 comment
Closed

[Bug]: Map touches are delayed #3471

objectiveSee opened this issue May 3, 2024 · 1 comment

Comments

@objectiveSee
Copy link

Mapbox Implementation

Mapbox

Mapbox Version

default

React Native Version

0.73.6

Platform

iOS, Android

@rnmapbox/maps version

10.1.21

Standalone component to reproduce

        <Mapbox.MapView
          style={styles.map}
          styleURL={currentMapStyle}
          compassEnabled={true}
          compassPosition={{
            top: compassTopOffset,
            right: 12
          }}
          attributionEnabled={false}
          scaleBarEnabled={true}
          onCameraChanged={onCameraChanged}
          onMapIdle={onMapIdle}
          onPress={onMapPress}
        >

Observed behavior and steps to reproduce

  1. Tap on a map marker with an onPress handler. The onPress action is delayed by 500-1000 ms
  2. Use MapView's onPress handler. Tapping on the map will call onPress, but also with a delay

Expected behavior

Taps should be faster and less than 100ms to be called

Notes / preliminary analysis

Guessing this is an internal issues with MapBox

Additional links and references

No response

@objectiveSee objectiveSee added the bug 🪲 Something isn't working label May 3, 2024
Copy link

github-actions bot commented May 3, 2024

Lint failed 😭

Please fix the errors in your code example - More info.:

error: Parsing error: Unterminated JSX contents at example.jsx:15:10:
  13 |           onMapIdle={onMapIdle}
  14 |           onPress={onMapPress}
> 15 |         >
     |          ^
  16 | 


1 error found.```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant