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
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).
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 useScaleGestureDetector
, 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 ditchScaleGestureDetector
entirely).