Code works in Chrome v.42 but not in Chrome v.43, why?

84 views Asked by At

I have javascript code that runs in many different devices, browsers and versions. The four lines of code that I lists below works in Chrome v.42 running on OS X Yosemite but not in Chrome v.43 running on Android devices. The code works in Chrome v.42 on Android. I have tested this on android version 4.4 and version 5.1. This code doesn't work on Firefox for Android either. I have no real idea of what is wrong. I grasping for a straw here. Please help if you can!

this.canvas.drawLayer.globalCompositeOperation = 'source-in';
this.canvas.drawLayer.drawImage(this.canvas.back, rect.x, rect.y, rect.width, rect.height, rect.x, rect.y, rect.width, rect.height);
this.canvas.mainLayer.drawImage(this.canvas.draw, rect.x, rect.y, rect.width, rect.height, rect.x, rect.y, rect.width, rect.height);
this.canvas.drawLayer.globalCompositeOperation = 'source-over';
0

There are 0 answers