       y = tag[1]-48;
   }
   
-  if (shieldEvent->actionHash == pressedHash) {
-    pressedX = x;
-    pressedY = y;
-  }
-  
-  if (shieldEvent->actionHash == releasedHash) {
-    releasedX = x;
-    releasedY = y;
-    if (pressedX <= releasedX && pressedY <= releasedY && (pressedX+pressedY < releasedX+releasedY)) {
-      for (int ix=pressedX; ix<=releasedX; ix++) {
-        for (int iy=pressedY; iy<=releasedY; iy++) {
-          setColor(ix,iy,selectedColor,false);
-        }
-      }
-      
-      strip.ShiftAllPixels();
-    }
-  }
-  
-  if (shieldEvent->actionHash == tappedHash) {
+  if (shieldEvent->actionHash == tappedHash || shieldEvent->actionHash == enteredHash) {
     if (tag[1] == 0 && tag[0] < 48+(colorCount+1) && tag[0] >= 48) {
       //color
       if (tag[0] == 48+(colorCount)) {

const int tappedHash = 38322;
const int pressedHash = 56990; 
const int releasedHash = 13117;

int ids[gridcolumns][gridrows];
int touchX, touchY;


void setup()
{
  for (int x=0; x<gridcolumns; x++) {
    for (int y=0; y<gridrows; y++) {
      ids[x][y] = 0;
    }
  }
  
  shield.setOnRefresh(refresh);
  screen.setOnEvent(screenEvent);

