Skip to content

Commit

Permalink
fix: ios detection for iOS 13 iPad (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki authored and yuriy-fix committed Dec 2, 2019
1 parent dd755d3 commit 1474ce8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vaadin-contextmenu-event.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

info: {
sourceEvent: null,
_ios: /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream
_ios: (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream)
|| (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)
},

reset: function() {
Expand Down

0 comments on commit 1474ce8

Please sign in to comment.