Skip to content

Commit

Permalink
Merge pull request #195 from vivekburman/feature/RED-8859-fixed-issue…
Browse files Browse the repository at this point in the history
…-of-android-ios-difference

RED-8859: Fixed issue of touchAction in touch devices
  • Loading branch information
rohitkr authored Jan 28, 2020
2 parents 5e00e2f + bc0b185 commit 0b57be7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions source/raphael.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ var loaded,
isEdge = R.isEdge = /Edge/.test(navigator.userAgent),
isIE11 = R.isIE11 = /trident/i.test(navigator.userAgent) &&
/rv:11/i.test(navigator.userAgent) && !win.opera,
isIE10 = R.isIE10 = navigator.appVersion.indexOf('MSIE 10') !== -1,
isFirefox = R.isFirefox = /Firefox/.test(navigator.userAgent),
isWindows = R.isWindows = /Windows/.test(navigator.userAgent),
mStr = 'm',
Expand Down
8 changes: 3 additions & 5 deletions source/raphael.svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -2403,12 +2403,10 @@ export default function (R) {
// '-ms-touch-action : none' permits no default touch behaviors in IE (10 and 11) browser
// '-touch-action : none' permits no default touch behaviors in mozilla of windows
if (supportsTouch) {
if (R.isEdge) {
css += 'touch-action:none;';
} else if (R.isFirefox && R.isWindows) {
css += 'touch-action:none;';
} else if (R.isIE11) {
if (R.isIE10) {
css += '-ms-touch-action:none;';
} else {
css += 'touch-action:none;';
}
}
x = x || 0;
Expand Down

0 comments on commit 0b57be7

Please sign in to comment.