Add polyfill for canvas context.isPointInPath (close openfl/openfl#977)
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user