From 7cdb8d81c13efa36a2c94d5ddb793f7723832bf5 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Fri, 20 Jan 2017 16:35:51 -0800 Subject: [PATCH] Add polyfill for canvas context.isPointInPath (close openfl/openfl#977) --- lime/_backend/html5/HTML5Application.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lime/_backend/html5/HTML5Application.hx b/lime/_backend/html5/HTML5Application.hx index d4fd5ad43..27d0e7263 100644 --- a/lime/_backend/html5/HTML5Application.hx +++ b/lime/_backend/html5/HTML5Application.hx @@ -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'];