We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bc5e66 commit 417f175Copy full SHA for 417f175
Other stuff/Tic tac toe/main.js
@@ -172,7 +172,7 @@ class Board{
172
}
173
midpoint(square){
174
let rect = table.childNodes[Math.floor(square/3)].childNodes[square%3].getBoundingClientRect();
175
- return({x: rect.x-scrollX+rect.width/2, y: rect.y-scrollY+rect.height/2});
+ return({x: rect.x+scrollX+rect.width/2, y: rect.y+scrollY+rect.height/2});
176
177
cellsEqual(...cells){
178
cells = cells.map((el)=>{return this.position[el]});
0 commit comments