Mouse & Touch plugins not detecting mouse - up event when a browser alert is issued.
Attach a Capx
https://www.dropbox.com/s/78xzr94z2e33w ... .capx?dl=0
Description of Capx
Demonstrates that the Mouse up event does not fire after a browser alert is issued, causing in game problems when trying to detect if the mouse button (or touch) is being used currently.
Steps to Reproduce Bug
It still thinks the mouse button (or touch) is down even though it isn't.
It should either send a mouse up event, or simply detect the mouse is no longer pressed, even if not sending the mouse up event.
Operating System and Service Pack
Windows 7 SP1
Construct 2 Version ID
I could not reproduce the bug on IE11 with mouse or touch.
On Firefox I could only reproduce it if the alert is cleared with the mouse. If it is cleared with the keyboard then there is no problem.
Develop games in your browser. Powerful, performant & highly capable.
I was only testing with IE 8 (Blame IBM with their shit tecsys software), Chrome, and Firefox. And like you said, I only really used the mouse to click the "ok" button... never really tried with the enter\space.
Closing as won't fix. It's probably the browser failing to issue the mouse up event. But alert dialogs are hacky and should only be used for testing - they are modal, pause the entire game, and don't work on some platforms/environments at all, so don't use them for real games.
IE8 does not support HTML5 at all so I don't know how you could have tested with that!
My bad - it was IE10. Regardless, this still happens... but it happens on (the other 'browser' as well, wink wink) And unfortunately, there is no way to get around using those dialogs on THAT browser. Perhaps it's just an issue with that particular browser, but it would have been nice to have a work-around.