[missions] use webkit vendor prefix for transform (Android doesn't yet support unprefixed transforms)

This commit is contained in:
fkloft 2015-04-12 02:06:15 +02:00
parent d7ce5b2c58
commit 735a0fee85
2 changed files with 4 additions and 0 deletions

View File

@ -107,7 +107,9 @@
left: 6px; left: 6px;
position: absolute; position: absolute;
top: 0; top: 0;
/* Firefox supports transform* without vendor prefix, but Android does not yet */
transform-origin: 4px 9px 0; transform-origin: 4px 9px 0;
-webkit-transform-origin: 4px 9px 0;
width: 8px; width: 8px;
} }

View File

@ -419,7 +419,9 @@ window.plugin.missions = {
for(var i = 0; i< resCount; i++) { for(var i = 0; i< resCount; i++) {
var resonator = container.appendChild(document.createElement('div')); var resonator = container.appendChild(document.createElement('div'));
/* Firefox supports transform* without vendor prefix, but Android does not yet */
resonator.style.transform = 'rotate(' + i*45 + 'deg)'; resonator.style.transform = 'rotate(' + i*45 + 'deg)';
resonator.style.webkitTransform = 'rotate(' + i*45 + 'deg)';
} }
return container; return container;
}, },