Comments (11)
具体什么机器呢 我这边试了下木有问题
from hilo.
电脑:win10 x64 i5-4430 8g内存
Chrome 版本 51.0.2687.0
电脑上,谷歌浏览器使用手机流量模式,点击会卡顿
另外小米手机4,更新到最新系统,在最新版微信里点击稍微按住一下会出现卡顿
链接:http://h.fulihuodong.com/guoji/game.html?t=-1534373860
from hilo.
还有点击屏幕后执行Tween.to动画,很正常,但是如果双击,那么就尴尬了。
from hilo.
感觉是页面滚动的问题,小米上复现了,pc上木有复现
加下面禁止滚动试试呢
document.body.addEventListener('touchmove', function (e) {
e.preventDefault(); });
from hilo.
双击那个是因为你连续对一个对象调了两次tweenTo,你可以
Tween.remove(target);
Tween.to(target, {}, {});
每次tween前把target 的tween先删掉
from hilo.
加上e.preventDefault()也是不行的,只要touchstart时间稍微长一点点就会有问题,之前我的理解是canvas的机制问题,因为好像在别的什么项目也看到过这种现象。
from hilo.
touchstart时preventDefault呢
from hilo.
还是一样,不纠结了。。
from hilo.
android手机上会有,我也遇到了~
from hilo.
除了 preventDefault 一类的js
再加一些css试一试呢? 比如
body,
div,
span,
canvas,
iframe {
-webkit-touch-action: none;
-ms-touch-action: none;
touch-action: none;
-webkit-touch-callout: none;
-ms-touch-callout: none;
touch-callout: none;
-webkit-text-size-adjust: none;
-ms-text-size-adjust: none;
text-size-adjust: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-ms-tap-highlight-color: rgba(0, 0, 0, 0);
tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
我果然是火狐黑。哈哈哈哈
from hilo.
小米5自带的浏览器就会卡
from hilo.
Related Issues (20)
- 边框透明度 这个支持吗
- 想做个塔防,怎么做判断攻击范围?
- 【BUG】Hilo.Text创建的文本在IOS/安卓下展示不一致 HOT 1
- ios和安卓中POINTER_MOVE事件stageY坐标不一致问题 HOT 3
- 中心点pivotXY导致文字、绘图偏移
- 竟然没有控制View depth(z-index)的方法。 HOT 1
- 如何让一个bitmap对象,垂直翻转,比如翻翻卡游戏
- 【BUG】Hilo.Tween.to在设置reverse为true的情况下onComplete回调无效 HOT 2
- 如何适配微信小游戏?
- 加载队列error "isTrusted": true
- Camera3d类的sortZ函数中的compareFn返回值问题
- 看来hilo 是阿里私有引擎 连微信小游戏都没适配 HOT 1
- Assertion failed: Moment of Inertia must be positive and non-zero. at assert (physics.js?e0ea:51)
- 求助:怎么换Sprite中Frame,setFrame没用
- canvas模式下Container的属性clipChildren失效
- 有支持dragonbones的mesh动画的计划吗?
- 不打算支持自定义shader吗?
- 停止维护了吗
- 凉了吗?我还想用这个开发个棋牌游戏,现在遇到个View的depth不生效的问题。
- 现在还有人在维护吗,使用standalone,在stage下面使用addChild的话会报错
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 hilo.