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

The keyboard glitches out a bit when you slide off to the right #30

Open
edwardball opened this issue Dec 29, 2015 · 1 comment
Open

Comments

@edwardball
Copy link

Hi Stuart - great library. One thing I've noticed is that if you hold your mouse down, and move off the right hand side of the keyboard, you hear a low sounding note, and an extra bit of highlighting appears. You can recreate this on the http://stuartmemo.com/qwerty-hancock/ website.

For the little project I'm working on, I've been able to stop this from happening by adding a check that the element is an li on lines 271 and 282.

if (mouse_is_down && element.tagName.toLowerCase() == 'li') {

I'm not 100% sure if that's the best way to solve it, but I just wanted to let you know.

Cheers,

Ed

@stuartmemo
Copy link
Owner

Thanks Ed! Will look into it.

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