Add polyfill for canvas context.isPointInStroke (fix openfl/openfl#973)
This commit is contained in:
@@ -136,6 +136,12 @@ class HTML5Application {
|
|||||||
#end
|
#end
|
||||||
|
|
||||||
untyped __js__ ("
|
untyped __js__ ("
|
||||||
|
if (!CanvasRenderingContext2D.prototype.isPointInStroke) {
|
||||||
|
CanvasRenderingContext2D.prototype.isPointInStroke = function (path, x, y) {
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
var lastTime = 0;
|
var lastTime = 0;
|
||||||
var vendors = ['ms', 'moz', 'webkit', 'o'];
|
var vendors = ['ms', 'moz', 'webkit', 'o'];
|
||||||
for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
|
for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
|
||||||
|
|||||||
Reference in New Issue
Block a user