Add polyfill for canvas context.isPointInPath (close openfl/openfl#977)

This commit is contained in:
Joshua Granick
2017-01-20 16:35:51 -08:00
parent cd797cda89
commit 7cdb8d81c1

View File

@@ -156,6 +156,11 @@ class HTML5Application {
return false;
};
}
if (!CanvasRenderingContext2D.prototype.isPointInPath) {
CanvasRenderingContext2D.prototype.isPointInPath = function (path, x, y) {
return false;
};
}
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];