dragboard: fix touch region for letters
parent
e071597a16
commit
99bb9a2d2e
|
|
@ -107,7 +107,7 @@ exports.input = function(options) {
|
||||||
"ram";
|
"ram";
|
||||||
// ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
// ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||||
// Choose character by draging along red rectangle at bottom of screen
|
// Choose character by draging along red rectangle at bottom of screen
|
||||||
if (event.y >= ( (R.y+R.h) - 12 )) {
|
if (event.y >= ( (R.y+R.h) - 26 )) {
|
||||||
// Translate x-position to character
|
// Translate x-position to character
|
||||||
if (event.x < ABCPADDING) { abcHL = 0; }
|
if (event.x < ABCPADDING) { abcHL = 0; }
|
||||||
else if (event.x >= 176-ABCPADDING) { abcHL = 25; }
|
else if (event.x >= 176-ABCPADDING) { abcHL = 25; }
|
||||||
|
|
@ -139,7 +139,7 @@ exports.input = function(options) {
|
||||||
|
|
||||||
// 12345678901234567890
|
// 12345678901234567890
|
||||||
// Choose number or puctuation by draging on green rectangle
|
// Choose number or puctuation by draging on green rectangle
|
||||||
else if ((event.y < ( (R.y+R.h) - 12 )) && (event.y > ( (R.y+R.h) - 52 ))) {
|
else if ((event.y < ( (R.y+R.h) - 26 )) && (event.y > ( (R.y+R.h) - 52 ))) {
|
||||||
// Translate x-position to character
|
// Translate x-position to character
|
||||||
if (event.x < NUMPADDING) { numHL = 0; }
|
if (event.x < NUMPADDING) { numHL = 0; }
|
||||||
else if (event.x > 176-NUMPADDING) { numHL = NUM.length-1; }
|
else if (event.x > 176-NUMPADDING) { numHL = NUM.length-1; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue