Skip to content

Commit

Permalink
comment out touch-related codes, touch-action comment out, instructio…
Browse files Browse the repository at this point in the history
…n time-clean edited for mobile
  • Loading branch information
MinaKhamesi committed Aug 21, 2020
1 parent e8fed46 commit 4390121
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ body> input:checked ~ .control-panel button{
flex: 1;
/* background-color: #f2f2f2;*/
border:1px #ccc solid;
touch-action: none;
/*touch-action: none;*/
}
#table-1{
display: flex;
Expand Down Expand Up @@ -970,6 +970,11 @@ body> input:checked ~ .control-panel button{
left:25rem;
top:38rem;
}
.instruction-table-cleanbtn{
top:5.8rem;
}
.instruction-table-time{
top:84%;}
}


Expand Down
8 changes: 4 additions & 4 deletions src/js/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ var universalGrid = false;



const synchronizeTables = (currentEle,func=null)=>{
/*const synchronizeTables = (currentEle,func=null)=>{
//find table index==table-id -1 and ele index in table that is row*totalcols + col
const currentTableId = currentEle.parentElement.parentElement.parentElement.id;
let idx;
Expand Down Expand Up @@ -410,7 +410,7 @@ var universalGrid = false;
}
}
mouseIsPressed = false;
}
}*/



Expand Down Expand Up @@ -465,7 +465,7 @@ var universalGrid = false;
//-----------------------------
// Handle touch events for grid
//-------------------------------
if(window.PointerEvent){
/*if(window.PointerEvent){
table.addEventListener('pointerdown',handleStartTouch);
table.addEventListener('pointermove',handleMoveTouch);
table.addEventListener('pointerup',handleEndTouch);
Expand All @@ -475,7 +475,7 @@ var universalGrid = false;
table.addEventListener('touchmove',handleMoveTouch);
table.addEventListener('touchend',handleEndTouch);
table.addEventListener('touchcancel',handleEndTouch);
}
}*/


})
Expand Down

0 comments on commit 4390121

Please sign in to comment.