Comments (6)
This is the problem which causes the empty cells to be draggable. I still haven't found a solution to this problem.
from just-chess.
Maybe for every movement ahieved of the piece you can remove the attibute dragable
with removeAttribute()
from the cell where the piece come from.
from just-chess.
That shouldn't be the problem, the cells aren't draggable by default or specified by the app, its the piece inside the cell which can be dragged.
from just-chess.
I tried this on the nav inspector and should get the job done:
.cell {
user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
}
It doesn't affect the pieces or anything else than the cells.
from just-chess.
I'll try it later
from just-chess.
Ok it seems to work fine!
from just-chess.
Related Issues (20)
- Setup Airbrake for your JavaScript application
- Test issue from Rollbar
- TypeError: elementdata is null
- Create Queens and design their movement
- Create Knights and design their movement
- Create Kings and design their movement
- Create Landing Page Design
- Make the project use Firebase to allow multiplayer gameplay HOT 2
- Switch current landing page HOT 3
- (unknown): Script error.
- Make a script that starts the game when two players are connected
- FirebaseError: Document path must be a non-empty string
- Sync destruction of pieces via Firebase
- Code the castling, check, checkmate and the turns, as well as the stalemate.
- Create button for create game
- Show moves in a table in both players
- Write description and instructions and design logo for landing page HOT 1
- Create footer
- [IMPORTANT] Auth request for firebase
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from just-chess.