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

Slip and slide #1292

Merged
merged 9 commits into from
May 1, 2015
Merged

Slip and slide #1292

merged 9 commits into from
May 1, 2015

Commits on Apr 17, 2015

  1. Made pan gestures slipperier

    Replaced the complex formula for overpanning with a simple one that makes the map feel much slipperier than before. `MGLMapView` now overpans just a little more aggressively than `MKMapView` but still a lot less aggressively than Google Maps.
    
    Fixes #1266.
    1ec5 committed Apr 17, 2015
    Configuration menu
    Copy the full SHA
    2bc63f7 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2015

  1. Configuration menu
    Copy the full SHA
    09c169d View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2015

  1. Apply some friction to pan drift

    When the panning velocity is low enough, ignore the pan gesture to simulate friction on the device’s glass screen.
    1ec5 committed Apr 19, 2015
    Configuration menu
    Copy the full SHA
    4c6987b View commit details
    Browse the repository at this point in the history
  2. Added drift-zooming effect after pinch gesture

    Apply a subtle animated zoom after a pinch gesture completes. Lots of magic numbers involved. Avoid drifting when the pinch is near-static, and when the scale factor would go below the minimum. There is more resistance to pinching outward than pinching inward, because it’s far easier to lose your place when you accidentally zoom out. Disabled two-finger pan, which is typically reserved for changing pitch; otherwise, it’s easy to accidentally pan while intending to pinch.
    1ec5 committed Apr 19, 2015
    Configuration menu
    Copy the full SHA
    41d28e7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    33aeece View commit details
    Browse the repository at this point in the history
  4. Simplified math for drift-rotation

    fmodf() would conflict with the fix for #1199.
    1ec5 committed Apr 19, 2015
    Configuration menu
    Copy the full SHA
    fae0c4c View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2015

  1. Lower threshold for rotation drift

    It’s pretty darn hard to get up to 5 rad/s with the same two fingers.
    1ec5 committed Apr 20, 2015
    Configuration menu
    Copy the full SHA
    0aadbed View commit details
    Browse the repository at this point in the history

Commits on May 1, 2015

  1. Configuration menu
    Copy the full SHA
    cf33edf View commit details
    Browse the repository at this point in the history
  2. Fixed build errors from merge

    Follow-up to cf33edf.
    1ec5 committed May 1, 2015
    Configuration menu
    Copy the full SHA
    5e6bf19 View commit details
    Browse the repository at this point in the history