Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装插件后sketch明显感觉卡顿 #10

Closed
welove11 opened this issue Jul 5, 2017 · 6 comments
Closed

安装插件后sketch明显感觉卡顿 #10

welove11 opened this issue Jul 5, 2017 · 6 comments
Labels

Comments

@welove11
Copy link

welove11 commented Jul 5, 2017

sketch版本43 ,安装之后,调出了工具栏,在尝试了几次功能后,比如按R绘制矩形这个简单的操作,或者鼠标框选时,会发生卡顿现象。卸载插件后,恢复正常。

@bugluo
Copy link
Collaborator

bugluo commented Jul 5, 2017

可以告知一下具体是怎样操作了之后变卡顿的吗?

@luyuan59
Copy link

luyuan59 commented Jul 5, 2017

框选时会非常卡,enable 插件了后也依然卡顿,只有 uninstall。上传 gif 图了,不知道能不能帮到忙。

default

  1. 安装 WeSketch;
  2. 打开 Sketch,新建文件,绘制多个矩形;
  3. 鼠标框选,此时会非常卡顿。

@Damao
Copy link
Member

Damao commented Jul 5, 2017

请升级到最新版本试试看,我们测试过44+的

@luyuan59
Copy link

luyuan59 commented Jul 5, 2017

你好,我的 Sketch 版本是45.1 。

@bugluo
Copy link
Collaborator

bugluo commented Jul 5, 2017

定位到框选造成卡顿的原因了,还挺难解决的。

由于获取选中的元素这个对象里面没有选中的先后,所以我需要用 select事件把每次获取的元素存在系统中。 所以如果是拖画布的操作,就在不停的选元素。会触发选中的事件。

如果去掉这个事件,我就没办法知道获取元素的先后了。link 功能会有影响。

这里我会先保证解决用户卡顿的问题,提供选择是否要开启元素与元素之间的连线。

@bugluo
Copy link
Collaborator

bugluo commented Jul 6, 2017

已经提交一版默认关闭元素连线的版本,应该不会再有卡顿,想克制使用自动升级所以暂未提升版本号。
可以重新下载官网链接下的插件。

@bugluo bugluo added the bug label Jul 6, 2017
@bugluo bugluo closed this as completed Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants