diff --git a/apps/draguboard/ChangeLog b/apps/draguboard/ChangeLog index bca1ca7c4..3f36dc4a6 100644 --- a/apps/draguboard/ChangeLog +++ b/apps/draguboard/ChangeLog @@ -1,3 +1,4 @@ 0.01: New App based on dragboard, but with a U shaped drag area 0.02: Catch and discard swipe events on fw2v19 and up (as well as some cutting edge 2v18 ones), allowing compatability with the Back Swipe app. +0.03: Fix "Uncaught Error: Unhandled promise rejection: ReferenceError: "dragHandlerDB" is not defined" diff --git a/apps/draguboard/lib.js b/apps/draguboard/lib.js index 6c63668a9..57093de3f 100644 --- a/apps/draguboard/lib.js +++ b/apps/draguboard/lib.js @@ -148,7 +148,7 @@ exports.input = function(options) { g.clearRect(Bangle.appRect); resolve(text); }, - drag: dragHandlerDB + drag: dragHandlerUB }); Bangle.prependListener&&Bangle.prependListener('swipe', catchSwipe); // Intercept swipes on fw2v19 and later. Should not break on older firmwares. diff --git a/apps/draguboard/metadata.json b/apps/draguboard/metadata.json index 620f39f71..2f395f8a8 100644 --- a/apps/draguboard/metadata.json +++ b/apps/draguboard/metadata.json @@ -1,6 +1,6 @@ { "id": "draguboard", "name": "DragUboard", - "version":"0.02", + "version":"0.03", "description": "A library for text input via swiping U-shaped keyboard.", "icon": "app.png", "type":"textinput", diff --git a/apps/draguboard/settings.js b/apps/draguboard/settings.js index c94ebee70..ff4ede637 100644 --- a/apps/draguboard/settings.js +++ b/apps/draguboard/settings.js @@ -21,7 +21,7 @@ value: settings[key] == color, onchange: () => { if (color >= 0) { - settings[key] = color; + settings[key] = parseInt(color); } else { delete settings[key]; }