Comments (5)
Let me check, is it because the requestAnimationFrame
API isn't supported?
from vue-countup-v3.
Let me check, is it because the
requestAnimationFrame
API isn't supported ?
If you find the answer, please let me know, thank you
from vue-countup-v3.
Let me check, is it because the
requestAnimationFrame
API isn't supported?If you find the answer, please let me know, thank you
Which browser and version are you using?
from vue-countup-v3.
Let me check, is it because the
requestAnimationFrame
API isn't supported ?If you find the answer, please let me know, thank you
Which browser and version are you using?
It is an embedded brwoser of Native App on Android 9 and Android 8. I guess it would be happened on system Browser also.
from vue-countup-v3.
Can you help me troubleshoot the problem? I don't have an Android 9 phone. To determine if the requestAnimationFrame API is the cause of the issue, you can try importing the polyfill below.
// make sure requestAnimationFrame and cancelAnimationFrame are defined
// polyfill for browsers without native support
// by Opera engineer Erik Möller
(function () {
var lastTime = 0;
var vendors = ['webkit', 'moz', 'ms', 'o'];
for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'];
window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] ||
window[vendors[x] + 'CancelRequestAnimationFrame'];
}
if (!window.requestAnimationFrame) {
window.requestAnimationFrame = function (callback) {
var currTime = new Date().getTime();
var timeToCall = Math.max(0, 16 - (currTime - lastTime));
var id = window.setTimeout(function () { return callback(currTime + timeToCall); }, timeToCall);
lastTime = currTime + timeToCall;
return id;
};
}
if (!window.cancelAnimationFrame) {
window.cancelAnimationFrame = function (id) {
clearTimeout(id);
};
}
})();
from vue-countup-v3.
Related Issues (19)
- 翻牌器效果能否实现 HOT 1
- 在线示例(Online example) HOT 1
- `Could not find a declaration file for module 'vue-countup-v3'` HOT 2
- enableScrollSpy 这个属性我为啥设置了不生效呢,没有出现在可见区域就已经滚动完了 HOT 3
- end-val发生变化会从0开始 HOT 4
- 千分符没有生效 HOT 2
- vite打包报错 HOT 4
- pnpm 安装依赖的时候为什么会卡住呢,下不了 HOT 1
- 播放完成回调无法触发 HOT 2
- 如何想要单独为前后缀添加样式,如何实现 HOT 1
- smartEasingThreshold is undefined HOT 5
- cannot read properties of undefined (reading 'defineComponent') HOT 2
- 不能修改初始值 HOT 1
- 小数点精度丢失 能否解决 HOT 2
- Options don't work properly if used enableScrollSpy, scrollSpyDelay, scrollSpyOnce HOT 3
- 用这个还需要装countup.js吗 HOT 4
- 使用vite构建代码的时候,发现会报这个错误 To load an ES module.... HOT 5
- 希望能增加一个不处理小数点的配置 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-countup-v3.