diff --git a/lime/_backend/html5/HTML5Application.hx b/lime/_backend/html5/HTML5Application.hx
index 1fe107bee..76a006ba9 100644
--- a/lime/_backend/html5/HTML5Application.hx
+++ b/lime/_backend/html5/HTML5Application.hx
@@ -136,6 +136,12 @@ class HTML5Application {
#end
untyped __js__ ("
+ if (!CanvasRenderingContext2D.prototype.isPointInStroke) {
+ CanvasRenderingContext2D.prototype.isPointInStroke = function (path, x, y) {
+ return false;
+ };
+ }
+
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {