qwerty-hancock icon indicating copy to clipboard operation
qwerty-hancock copied to clipboard

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

Open edwardball opened this issue 9 years ago • 1 comments

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

edwardball avatar Dec 29 '15 17:12 edwardball

Thanks Ed! Will look into it.

stuartmemo avatar Jan 03 '16 18:01 stuartmemo