News for hackers. Stuff that matters.
Re:Shiny Demos, new HTML5 showcase by Opera by ovi256 on Monday February 27, 2012 @07:03AM (#3638668)
The "Rock Piano" keys get stuck by simply clicking a key, holding, and moving the cursor outside the key. A bit finicky :)
Re:Shiny Demos, new HTML5 showcase by Opera by talmand on Monday February 27, 2012 @09:44AM (#3639096)
That's a common problem, a key just can't register a mouse button release outside of itself.
Re:Shiny Demos, new HTML5 showcase by Opera by rplnt on Monday February 27, 2012 @10:08AM (#3639189)
Could it check if it is still in a pressed state? There would be a lag, but it wouldn't be broken. I guess.
Re:Shiny Demos, new HTML5 showcase by Opera by talmand on Monday February 27, 2012 @01:46PM (#3640068)
I imagine there's several ways to do it, it's a matter of figuring out which one is the most efficient for the situation at hand.

For instance, you could log what key was pressed with its own mouse event, then detect a generic mouse release event not tied to the key, look up the log that recorded what key was pressed, and then react accordingly to that. I wouldn't think it would be the best method for a multi-touch device though.