Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thinking about touch events for interaction on high DPI displays #198

Open
dhcole opened this issue May 18, 2012 · 2 comments
Open

Thinking about touch events for interaction on high DPI displays #198

dhcole opened this issue May 18, 2012 · 2 comments

Comments

@dhcole
Copy link

dhcole commented May 18, 2012

@tmcw Curious what you think about having wax do a little more to help fire touch events. Maps with small hot spots, like with markers that are only a few pixels wide, are very difficult to hit on hi res touch displays. Seems like this is because touch events just return a single coordinate, yet its its hard to match that coordinate up with a small hot spot.

What do you think about something like a touch buffer of 10 or so px where wax will look within this buffer and hit a nearest neighbor hot spot to the touch coordinate.

cc @yhahn

@tmcw
Copy link

tmcw commented May 18, 2012

Is this something we should fix at the Wax level? Like these maps sound like they'll be suboptimal anyway, and if a project like Modest Maps takes the MapBox Streets approach to Retina tiles (halves them to 128 if the ratio is 2x) then non-optimized interaction layers would be upsampled and still be fine.

@springmeyer
Copy link

interested as well. this hardcoded hack exists for the iPad and is likely insufficient with the newer higher res displays.

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

No branches or pull requests

3 participants