Skip to content

disable user selection on ios - #149

Merged
easbar merged 1 commit into
masterfrom
93_bug_longpress
Nov 16, 2021
Merged

easbar merged 1 commit into
masterfrom
93_bug_longpress

Conversation

@Janekdererste

@Janekdererste Janekdererste commented Oct 29, 2021 •

Copy link
Copy Markdown
Collaborator

fixes #93

The only way I was able to disable the user selection on iOS when the map has a long press to bring up the context menu was to set -webkit-user-select: none on the app-wrapper level. I tried to enable selection for the routing results and the sidebar, but somehow performing a long press on the map always selects things in the search box.

I would assume that copying text from this application on a phone is less important than random selects of elements in the UI.

@easbar

easbar commented Nov 4, 2021 •

Copy link
Copy Markdown
Member

Unfortunately this is still not working for me. I am using iOS 14.8.1 and tried both Firefox and Safari. A long-press on the map no longer selects the marker symbol next to the first search box (as in master), but now it does not do anything at all (except the haptic feedback of the phone)

@Janekdererste

Copy link
Copy Markdown
Collaborator Author

but now it does not do anything at all.

This is of course not intended as well ☹️

@easbar

easbar commented Nov 4, 2021

Copy link
Copy Markdown
Member

Or is this related to #152?

@karussell

Copy link
Copy Markdown
Member

Will re-trigger the build. See #147

@easbar

easbar commented Nov 4, 2021

Copy link
Copy Markdown
Member

Or is this related to #152?

Apparently not

@easbar

easbar commented Nov 16, 2021

Copy link
Copy Markdown
Member

As I mentioned in #111 this version (that includes this PR): cb3e74e on the ol_exp branch works fine under iOS for me. I just also verified that without the present PR I can reproduce #93 on that branch (context menu opens, but some text is selected). So while there still seems to be another issue (that is only fixed on the ol_exp branch currently) this PR is required to fix #93. So we should merge this.

@easbar
easbar merged commit 8331e8e into master Nov 16, 2021
@easbar
easbar deleted the 93_bug_longpress branch November 16, 2021 16:35
ZeroGxMax pushed a commit to minhhpkp/graphhopper-maps that referenced this pull request Nov 12, 2024
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.

Long press in iOS Marks context Menu entries

3 participants