简体   繁体   English

Javascript动画在更新的Chrome中的行为有所不同

[英]Javascript animation behaves differently in updated Chrome

Okay, this one is really wierd. 好的,这真的很奇怪。

Currently I'm maintaining rails 3.2.8 application and a couple of days ago I've noticed that js-animation began to behave differently in updated Chrome . 目前,我正在维护rails 3.2.8应用程序,几天前,我注意到js-animation在更新的Chrome行为有所不同。

I'm using bootstrap-modal.js and bootstrap-alerts.js modules from twitter-bootstrap 1.4 : 我正在使用来自twitter-bootstrap 1.4 bootstrap-modal.jsbootstrap-alerts.js模块:

— When I'm trying to dismiss alert message, it fades out but the element remains in the code: —当我尝试关闭警报消息时,它消失了,但元素仍保留在代码中:

<div class="alert-message block-message info fade in">
<a href="#" class="close">×</a>
  Lorem ipsum... <a href="http://google.com">A link</a>
</div>

so I have the blank space now with the size of dismissed block. 所以我现在有空白处,有被解散的方块大小。 And still can click that link other there (blindly). 而且仍然可以(盲点)单击该链接。

— When I'm invoking bootstrap modal I'm getting only darkened background overlay, but there's no modal itself. —调用引导程序模态时,我只会得到变暗的背景叠加,但本身没有模态。 Checked the page source and it has only one new block since the moment event was triggered: 检查页面源,自事件触发后,页面源只有一个新块:

<div class="modal-backdrop fade in"></div>

This happens only in Chrome (tried Safari , Firefox — everything's fine) and only on local machine . 这种情况发生在Chrome (尝试使用SafariFirefox –一切正常)中,并且本地计算机上发生 There's no such problem on remote server (it has identical code). 在远程服务器上没有这样的问题(它具有相同的代码)。 I also tried to run application in production mode on local machine — same lacks. 我还尝试在本地计算机上以生产模式运行应用程序-同样也没有。

And there's no errors or warnings in Chrome console. 而且Chrome控制台中没有错误或警告。

Tried on 试穿
Chrome 21.0.1180.89 m / 22.0.1229.79 m (Windows 7) Chrome 21.0.1180.89 m / 22.0.1229.79 m (Windows 7)
Chrome 22.0.1229.91 beta (OS X 10.6.8) Chrome 22.0.1229.91 beta (OS X 10.6.8)

Found a guy with similar problem but without answer — http://productforums.google.com/forum/#!topic/chrome/6-DncVjLZhw (In case you doubt my sanity) 找到了一个有类似问题但没有答案的人-http://productforums.google.com/forum/#!topic/chrome /6- DncVjLZhw (以防您怀疑我的理智)

Yea, the update of Chrome is breaking a lot of sites today. 是的,Chrome的更新今天破坏了很多网站。 The cause is unknown, We can only wait until google developers fix itself. 原因不明,我们只能等到Google开发人员自行修复。 Ok , guess it's happening on all OS systems. 好的,猜想它在所有OS系统上都在发生。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM