jmpress does not animate in Chrome 44

北慕城南 提交于 2019-12-25 07:05:32

问题


Here's a link to jmpress: jmpressjs.github.io/jmpress.js

Notice how the animations do not work in Chrome 44 (latest version of Chrome as of this post).

I tried running this same page in Safari 8.0.7, and the animations worked just fine.

Does anyone know why this is happening?


回答1:


this question gets old but is still relevant.

The issue is still open on github (issue #179) but there is a fix in comments (here), that works fine for me at least :)

In the jmpress.js file, in the mapProperty function, change the line

    return "-" + prefix + "-" + postfix;

to the following:

    return (prefix!=="")?"-" + prefix + "-" + postfix:postfix;

(answer edited following @worldofjr's suggestion)



来源:https://stackoverflow.com/questions/31826838/jmpress-does-not-animate-in-chrome-44

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!