Skip to content

Convert pointerId to string for object lookups#7285

Merged
tschaub merged 1 commit intoopenlayers:masterfrom
tschaub:ios-11-fix
Sep 24, 2017
Merged

Convert pointerId to string for object lookups#7285
tschaub merged 1 commit intoopenlayers:masterfrom
tschaub:ios-11-fix

Conversation

@tschaub
Copy link
Copy Markdown
Member

@tschaub tschaub commented Sep 23, 2017

We're using the expression property in object where property is a number, and apparently Safari on IOS11 doesn't like that when the number is negative. Although event.pointerId is a number it is legitimate to convert to a string when we use it as an object property name. So even if this is a Safari bug, I think it is a legitimate change to make.

Thanks @ogo-adp for debugging and identifying the fix.

Fixes #7202.

@wayofthefuture
Copy link
Copy Markdown

You guys are a godsend if this works!

Copy link
Copy Markdown
Member

@ahocevar ahocevar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, please merge.

@tschaub tschaub merged commit 73b3213 into openlayers:master Sep 24, 2017
@tschaub tschaub deleted the ios-11-fix branch September 24, 2017 17:17
@tschaub tschaub mentioned this pull request Sep 26, 2017
mdastous-bentley pushed a commit to BentleySystems/openlayers that referenced this pull request May 27, 2020
Convert pointerId to string for object lookups
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.

Map freezing with iOS 11 on ipad mini

3 participants