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

sliderMouseLeave 方法 #60

Open
Dreadom opened this issue Feb 23, 2023 · 2 comments
Open

sliderMouseLeave 方法 #60

Dreadom opened this issue Feb 23, 2023 · 2 comments
Assignees

Comments

@Dreadom
Copy link

Dreadom commented Feb 23, 2023

sliderMouseLeave() {
if (this.isSliderLocked) this.isSliderLocked = true;
},

这一句是不是没什么用?

@yibaikuai
Copy link
Member

yibaikuai commented Feb 23, 2023

感谢你的反馈,这部分代码是有问题,应该在鼠标移出图片区域后,去除滑动框禁用的限制,这样下次进入图片区域滑动框就能继续跟随鼠标了,代码修改如下

sliderMouseLeave() {
      if (this.isSliderLocked) this.isSliderLocked = false;
    }

@jscslld
Copy link
Member

jscslld commented Feb 23, 2023

#61 已合入develop分支,您可以拉取develop修复此问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants