-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(web): restores compat with older Android devices 🐵 #9943
Changes from all commits
5580ebb
5289776
f5cfd27
3ea4a60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,17 @@ | ||||||
// Needed by the KMW's gesture engine until Chrome 61. | ||||||
var DOMRect = DOMRect || function (x, y, width, height) { | ||||||
this.x = this.left = x; | ||||||
this.y = this.top = y; | ||||||
this.width = width; | ||||||
this.height = height; | ||||||
this.bottom = y + height; | ||||||
this.right = x + width; | ||||||
}; | ||||||
|
||||||
// https://stackoverflow.com/questions/53308396/how-to-polyfill-array-prototype-includes-for-ie8 | ||||||
if(!Array.prototype.includes){ | ||||||
//or use Object.defineProperty | ||||||
Array.prototype.includes = function(search){ | ||||||
return !!~this.indexOf(search); | ||||||
} | ||||||
} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Lines 95 to 96 in 33eae05
If this is the only KeymanWeb "asset" not copied from KeymanWeb, I'd probably add a comment about "other-polyfills.js" not needing to be copied. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.