qwerty-hancock
qwerty-hancock copied to clipboard
The keyboard glitches out a bit when you slide off to the right
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
Thanks Ed! Will look into it.