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

第一章第一个rxjs示例有问题 #3

Open
zzmmzz777 opened this issue May 20, 2018 · 1 comment
Open

第一章第一个rxjs示例有问题 #3

zzmmzz777 opened this issue May 20, 2018 · 1 comment

Comments

@zzmmzz777
Copy link

https://github.com/mocheng/dissecting-rxjs/blob/master/chapter-01/rxjs/timingSenseTest.js#L5

这里使用了 withLatestFrom

相比于 jQuery 的版本,这里有个 bug:

  1. 第一次,正常点击一次鼠标,得到结果
  2. 第二次,使用鼠标点击空白处,再将鼠标移动至按钮上松开,会错误计时。
@fengyunhe
Copy link

按照jQuery版本的思路,此处如何清除 mouseDown 呢?正确的方法应该是怎么处理?

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

2 participants