wsick / Fayde

Inspired by Silverlight; XAML engine using Javascript and rendering to the HTML5 Canvas.
MIT License
189 stars 27 forks source link

Too many OnIsPressedChanged transitions with touch screen #125

Open asthomas opened 9 years ago

asthomas commented 9 years ago

When using a touch screen, either a phone or a laptop with touch screen, pressing a check-box causes OnIsPressedChanged to fire 4 times. IsPressed goes through true -> false -> true -> false. The same check-box click with a mouse produces only true -> false.

BSick7 commented 9 years ago

Which browser/platform are you using?

asthomas commented 9 years ago

Chrome and IE11 for Windows both do it. Firefox for Windows does not. Chrome for Android does it, and Firefox for Android is unpredictable.

BSick7 commented 9 years ago

I just tried with Chrome and IE11 on Windows and could not reproduce. To be clear, I put a console.log in ButtonBase.OnIsPressedChanged