Fixed Safari Bug
This commit is contained in:
parent
fc0e2f4218
commit
64535641fc
1 changed files with 7 additions and 0 deletions
|
@ -307,9 +307,16 @@ Sprite.prototype.updateTransform = function() {
|
||||||
$(this.mesh).css('transform-origin', rotationCenterX + 'px ' + rotationCenterY + 'px');
|
$(this.mesh).css('transform-origin', rotationCenterX + 'px ' + rotationCenterY + 'px');
|
||||||
|
|
||||||
$(this.mesh).css('opacity', (1 - (this.ghostFilterEffect) / 100));
|
$(this.mesh).css('opacity', (1 - (this.ghostFilterEffect) / 100));
|
||||||
|
if (!!window.chrome) {
|
||||||
$(this.mesh).css('-webkit-filter',
|
$(this.mesh).css('-webkit-filter',
|
||||||
'hue-rotate(' + ((this.colorFilterEffect % 200) * 1.8) + 'deg) \
|
'hue-rotate(' + ((this.colorFilterEffect % 200) * 1.8) + 'deg) \
|
||||||
brightness(' + ((this.brightnessFilterEffect / 100) + 1) + ')');
|
brightness(' + ((this.brightnessFilterEffect / 100) + 1) + ')');
|
||||||
|
}
|
||||||
|
if (/Constructor/.test(window.HTMLElement)) {
|
||||||
|
$(this.mesh).css('-webkit-filter',
|
||||||
|
'hue-rotate(' + ((this.colorFilterEffect % 200) * 1.8) + 'deg) \
|
||||||
|
brightness(' + (this.brightnessFilterEffect / 100) + ')');
|
||||||
|
}
|
||||||
|
|
||||||
// Don't forget to update the talk bubble.
|
// Don't forget to update the talk bubble.
|
||||||
if (this.talkBubble) {
|
if (this.talkBubble) {
|
||||||
|
|
Reference in a new issue