Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

[iOS] Adding pitch messes up the bottom left corner pan gesture #91

Open
Lawris opened this issue Oct 24, 2019 · 7 comments
Open

[iOS] Adding pitch messes up the bottom left corner pan gesture #91

Lawris opened this issue Oct 24, 2019 · 7 comments
Labels
bug Something isn't working

Comments

@Lawris
Copy link

Lawris commented Oct 24, 2019

Hello,

When I increase the pitch of the mapView and make a pan gesture from the middle to the bottom left corner of the device, the velocity of the gesture seems to be exponentially calculated and the view is thrown away really far. This does not happen with the 3 other corners and only occurs with a pitch > 0.

capture

Here is my basic configuration:

        mapView = MGLMapView(frame: view.bounds)
        mapView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
        mapView.delegate = self
        mapView.logoView.isHidden = true
        mapView.attributionButton.isHidden = true
        mapView.compassView.isHidden = true
        mapView.allowsRotating = true
        mapView.isPitchEnabled = true
        mapView.styleURL = MapViewStyleURL
        view.addSubview(mapView)

Steps to reproduce

  1. Make a basic implementation of the mapView
  2. Run and add some pitch
  3. Drag from the middle to the bottom left corner

Expected behavior

Normal pan velocity.

Actual behavior

Way to high velocity.

Configuration

Mapbox SDK versions: 4.10
iOS/macOS versions: iOS 13 and 12
Device/simulator models: XS Max but tested on various simulators like iPhone 7
Xcode version: 11.2 beta (11B41)

@Lawris Lawris changed the title Adding pitch messes up the bottom left corner pan gesture [iOS] Adding pitch messes up the bottom left corner pan gesture Oct 24, 2019
@julianrex
Copy link
Contributor

Thanks for the report @Lawris.

@julianrex
Copy link
Contributor

@astojilj could this be a side-effect of recent changes?

@astojilj
Copy link
Contributor

@astojilj could this be a side-effect of recent changes?

@julianrex Don't know when and if this is a regression.

@julianrex
Copy link
Contributor

/cc @fabian-guerra

@jmkiley
Copy link
Contributor

jmkiley commented Nov 1, 2019

May be related to mapbox/mapbox-gl-native#5292

@chloekraw chloekraw transferred this issue from mapbox/mapbox-gl-native Dec 6, 2019
@chloekraw chloekraw added the bug Something isn't working label Dec 14, 2019
@knov
Copy link
Contributor

knov commented Apr 7, 2020

Possibly related to mapbox/mapbox-gl-native#5292

@c941010623
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants