Skip to content

Conversation

@pgiraud
Copy link
Member

@pgiraud pgiraud commented Jun 9, 2015

Currently when displaying a map on a touch device the ol-touch className is added to the viewport. Well this className actually replaces ol-viewport.

In my application I rely on ol-viewport to add styling behavior to element within the viewport and I don't want to add specific css selectors for touch devices.

With this pull request ol-touch is effectively added instead of replacing the existing one.

I've tested manually some examples and haven't seen any weird behavior.

Please review.

@fredj
Copy link
Member

fredj commented Jun 9, 2015

LGTM

@elemoine
Copy link
Member

elemoine commented Jun 9, 2015

Looks good to me too.

pgiraud pushed a commit that referenced this pull request Jun 9, 2015
Add ol-touch but keep ol-viewport className.
@pgiraud pgiraud merged commit 973cc6f into openlayers:master Jun 9, 2015
@pgiraud pgiraud deleted the touch-classname branch June 9, 2015 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants