Skip to content
Snippets Groups Projects
Commit 33c19079 authored by Oleksandr Zhurbenko's avatar Oleksandr Zhurbenko
Browse files

Fixed Android detection for the text shape

parent 61c54788
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ export default class TextDrawComponent extends Component {
// that's why we have a separate case for iOS - we don't focus here automatically
// but we focus on the next "tap" invoked by a user
const iOS = ['iPad', 'iPhone', 'iPod'].indexOf(navigator.platform) >= 0;
const Android = ['Android'].indexOf(navigator.platform) >= 0;
const Android = navigator.userAgent.toLowerCase().indexOf('android') > -1;
// unsupported Firefox condition (not iOS though) can be removed when FF 59 is released
// see https://bugzilla.mozilla.org/show_bug.cgi?id=1409113
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment