moagrius / TileView

TileView is a subclass of android.view.ViewGroup that asynchronously displays, pans and zooms tile-based images. Plugins are available for features like markers, hotspots, and path drawing.
MIT License
1.46k stars 337 forks source link

Scaling focus point is off by an amount equal to ViewConfiguration scaled slop #484

Closed moagrius closed 5 years ago

moagrius commented 6 years ago

We manually manage touch events to start scrolls and flings, and offset start values by the slop we ignored when qualifying the event, but for ScalingScrollView, we use ScaleGestureDetector, which does not account for that slop. We'll need to manually handle pinch (we can probably get away with double tap as is, but it might be more efficient to handle that as well since it's fairly straightforward and means we can ditch ScaleGestureDetector entirely).

moagrius commented 5 years ago

Closing fixed in version 4