Hand.js crashes Cordova apps on Windows 8.1


Repo Steps:
  1. Create new blank Cordova app using latest toolset: http://modernweb.com/2013/04/08/cordova-windows-phone-8/
  2. Add Hand.js to scripts directory, include Hand.js in index.html:
    <script src="scripts/hand.minified-1.3.8.js"></script>
  3. Add touch event for testing:
    function onDeviceReady() {
    document.body.addEventListener('pointerdown', function() {console.log("It works!")})
Expected: touching body results in console log

Actual: App crashes:
Exception was thrown at line 7, column 29 in eval code
0x80020101 - JavaScript runtime error: Could not complete the operation due to error 80020101.
The program '[8472] WWAHost.exe' has exited with code 0 (0x0).

No debug info, no indication of how it could be happening.


moneppo wrote Dec 5, 2014 at 2:40 PM

Just tested on Android Cordova and it works. Seems to be a app-embedding issue on Windows and WP only.