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

Pinch to zoom stutters and get stuck a lot #103

Open
pixelfreak opened this issue Feb 15, 2012 · 7 comments
Open

Pinch to zoom stutters and get stuck a lot #103

pixelfreak opened this issue Feb 15, 2012 · 7 comments

Comments

@pixelfreak
Copy link

Try pinching to zoom on iPhone/iPad. It stutters pretty badly and gets stuck a lot, meaning you can't zoom in/out again unless you let go and start pinching again.

@pixelfreak
Copy link
Author

Trying to debug this...the touchmove event seems to stop getting triggered when it hits the next/previous zoom level. The issue also seems to be intermittent.

@pixelfreak
Copy link
Author

I moved all the touches listener to document.body, no luck, doesn't seem to matter.

@pixelfreak
Copy link
Author

Is there a way to not update the tiles until touchend happens? I think that might be what's causing the issue.

@pixelfreak
Copy link
Author

The code that zooms the tiles and the one that updates them are a little convoluted. I am not familiar enough with the codebase to fix this.

@tmcw
Copy link
Contributor

tmcw commented Feb 20, 2012

@pixelfreak - I'll be working on this area and addressing this in the #84 ticket. If you want to de-convolute the code, go for it.

@pixelfreak
Copy link
Author

I did some standalone experiment and confirmed that the culprit is the map updating the tiles on touchmove. Delaying the updates until touchend solves it.

@tmcw
Copy link
Contributor

tmcw commented Feb 20, 2012

@pixelfreak try the ff branch: it defers tile loading and changes the CSS transforms strategy. Currently at the cost of Firefox & IE compatibility, but that should be fixable soon.

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

No branches or pull requests

2 participants