ejnnr / web-chess

A web implementation of a chess database program like Scid.
MIT License
7 stars 4 forks source link

Make the new UI work in Firefox #34

Open ejnnr opened 8 years ago

ejnnr commented 8 years ago

There are a few things that don't work in Firefox right now:

  1. Polymer and Angular don't get along very well. However this is easy to fix, just load webcomponents.js instead of the lite version.
  2. Some Angular bindings don't seem to get updated automatically (i.e. the board doesn't resize properly and the scoresheet as well). I don't know how to fix this yet.
  3. merge.js (used by chessground) causes a "too much recursion" error. The reason seems to be that whenever the chessground config (including legal moves, so after every move) is updated, the complete config is merged with itself and then with the new on (see https://github.com/yeikos/js.merge/blob/master/merge.js#L121). Especially the piece list takes a while. Fix: change merge.js (start at index 1 instead of 0 if clone option is false).

So the main problem seems to be number 2 at the moment.

ejnnr commented 8 years ago
  1. and 3. have been fixed completely.
  2. has also largely been fixed, the only problem is that the board still doesn't resize automatically.